I have an excel 2010 spreadsheet with 4 columns.
Column A: A list of UPC codes for products I sell. Around 300 lines.
Column B: Formula (more on this later)
Column C: Another list of UPC codes. These UPC codes are around 10,000 lines.
Column D: An inventory count which corresponds to UPC codes in Column C.
The formula:
=VLOOKUP(A2,C:D,2,FALSE)
The idea is to match up my UPC codes with my supplier's UPC codes to retrieve the corresponding inventory count.
All data was pasted into a new spreadsheet from other spreadsheets and were pasted as values only to ensure no other characters or formatting was imported.
This formula was dragged down for all 300 lines.
I received the error #N/A in Column B until I inserted the following character before the values in Column A:
'
Note: the ' was inserted manually by clicking on the cell and typing ' in the box above.
Immediately after this was done, the #N/A would change to the corresponding inventory retrieved from Column D.
My question is why does this work? Why does the method without the ' not work? Is there a way to quickly add the ' before all values in Column A? Note: CONCATENATE("'",A2) does not work for some reason.