SOLVED

VLOOK UP Error

%3CLINGO-SUB%20id%3D%22lingo-sub-2924494%22%20slang%3D%22en-US%22%3EVLOOK%20UP%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2924494%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20recreated%20the%20issue%20I%20face%20in%20the%20simplest%20format%20possible%20.%20Excel%20is%20attached%20here.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ENotes%3A%3CBR%20%2F%3EOn%20the%20output%20sheet%20-%20Column%20A%20is%20driven%20by%20a%20formula%20too.%20Data%20format%20is%20set%20to%20%22General%22.%20Column%20A%20on%20both%20sheets%20are%20set%20to%20General%20on%20the%20original%20file%20too.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ERequired%20output%20%3A%20I%20need%20the%20name%20on%20column%20B%22%20to%20read%20as%20%22Cloud%22%20.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20my%20original%20file%20I%20converted%20the%20code%20to%20number%20in%20both%20sheets%20%2C%20it%20still%20does%20not%20gives%20the%20result%20I%20wanted.%20I%20know%20on%20this%20sheet%20when%20the%20number%20is%20converted%20to%20number%20Vlook%20up%20works.%20But%20on%20the%20original%20file%20it's%20not%20the%20case.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20workaround%3A%20Copying%20the%20data%20from%20%22Data%20sheet%22%20on%20column%20A%20and%20paste%20it%2C%20But%20it's%20not%20feasible%20when%20there%20are%201000%20of%20data.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20can%20I%20correct%20this%20error%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2924494%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2925006%22%20slang%3D%22en-US%22%3ERe%3A%20VLOOK%20UP%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2925006%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1132817%22%20target%3D%22_blank%22%3E%40ImalkaJ%3C%2FA%3E%26nbsp%3BYou%20did%20not%20attach%20the%20file.%20Please%20try%20again.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2929311%22%20slang%3D%22en-US%22%3ERe%3A%20VLOOK%20UP%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2929311%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi there,

I have recreated the issue I face in the simplest format possible . Excel is attached here. 

Notes:
On the output sheet - Column A is driven by a formula too. Data format is set to "General". Column A on both sheets are set to General on the original file too. 

Required output : I need the name on column B" to read as "Cloud" . 

In my original file I converted the code to number in both sheets , it still does not gives the result I wanted. I know on this sheet when the number is converted to number Vlook up works. But on the original file it's not the case. 

My workaround: Copying the data from "Data sheet" on column A and paste it, But it's not feasible when there are 1000 of data. 

How can I correct this error?

7 Replies

@ImalkaJ You did not attach the file. Please try again.

I attached the file now. Thanks for looking into this.

@ImalkaJ 

 

Yea_So_1-1636078012210.png

 

Yea_So_2-1636078044758.png

 

 

cheers

@Yea_So Yes those are two data types and I converted those to the same type on Output sheet. The file I attached does not have that problem. It convets to the number just fine.
But on my original file even if I convert the value to number it still does not. The functionality I use is "Number" on home. Is there any other method to convert this?

@ImalkaJ 

 

try selecting the cells and clear all formats

Yea_So_0-1636094221586.png

 

best response confirmed by ImalkaJ (Occasional Contributor)
Solution

@ImalkaJ Formatting cells as Number as you describe (i.e. on the Home ribbon) does not transform the underlying texts (that may look like numbers) into real numbers. For that you can use Text-to-columns.

 

Alternatively, if you are nor sure about the real type of a "number", use the following formula on the Output sheet:

=VLOOKUP(--A2,'Data sheet'!A:J,10,FALSE)

The double dash in front of A2 will force Excel to interpret what's in A2 as a real number.

You could also use *1 after A2. That has the same effect.

=VLOOKUP(A2*1,'Data sheet'!A:J,10,FALSE)