Sorry if question is hard to understand. basically i am going through our inventory at work and i need to mark specific part numbers with an "S" in column H. is there a way to use "sheet 1 column A" as a search for in "total inv" column A"
i want to use the info to the right to search column A on the left and add an S in column H to any part number that matches
If Sheet1
is in the same workbook (which despite the picture, I assume it is), then a COUNTIF()
will help.
In your Column H, Row 1 (cell H1) you can put
=Countif(Sheet1!A:A, A1)
This will count how many times the part number in cell A1 appears in column A
of Sheet1
.
You can see you either get a 0
or some number. So we can wrap that Countif()
formula in an If()
to test if it's 0
or not. If it's not 0
, then we can output an S
:
Update cell H1
to:
=If(CountIf(Sheet1!A:A, A1)>0, "S", "")