I'm having trouble trying to run a VLOOKUP
query in Google Sheets. I'm trying to see if a value already exists in a given column. However, I need to sanitize the inputs since the provided numbers have 9 digits, and the inputs have 12. For example,
- Cell A1 - Given Value -
123456789
- Cell B1 - Inputs ---------
999123456789
I get the needed value from the input using the RIGHT
Function taking the last 9 values
- Cell C1 -
=RIGHT(B1,9)
Then run the VLOOKUP
function
- Cell D1 -
=VLOOKUP(C1,B:B,1,0)
The result in get in Cell D1 is:
N/A. The error I get is "Did not find 123456789 in the VLOOKUP evaluation"
I'm not sure what I'm doing wrong here since this formula works correctly in Excel.