Forum

Notifications
Clear all

Facing error in Vlookup

6 Posts
3 Users
0 Reactions
50 Views
(@waqasmunir)
Posts: 21
Eminent Member
Topic starter
 

Hello,

I am facing a problem in vlookup formula. Once I enter in the cell value of table array of vlookup formula and press enter then formula works properly. My sheet of query is attached. i explain the query in attached file.

Thanks in advance for your cooperation.

Waqas Munir

 
Posted : 15/01/2021 5:06 am
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Hello Waqas,

The problem here is that all values in cells C3 to C21, except for the value in cell C16, are text. The values you check against are numbers, so VLOOKUP don't find a match, except for the third lookup that is working fine because the value in cell C16 and the comparison value in cell J9 are numbers.

Either you correct the values in column C to be number values or you change comparison values in column K to be text (just remember then to change the value in cell C16 to text).

If you have problem to visually see if the values are formatted as text or numbers, you can for example use the ISNUMBER or ISTEXT functions to do a simple check.

Br,
Anders

 
Posted : 15/01/2021 4:32 pm
(@waqasmunir)
Posts: 21
Eminent Member
Topic starter
 

No...

my problem is not resolved please downloads the attached file and apply any thing to resolve it.

Thanks in advance for your cooperation.

 
Posted : 16/01/2021 4:01 am
(@debaser)
Posts: 836
Member Moderator
 

To cater for either format you could use:

 

=IFERROR(VLOOKUP(TEXT(J4,"0"),C:D,2,0),VLOOKUP(J4,C:D,2,0))

 
Posted : 16/01/2021 10:58 am
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Still better to ensure you have correct data. See attached.

 
Posted : 16/01/2021 12:32 pm
(@waqasmunir)
Posts: 21
Eminent Member
Topic starter
 

Thanks Mr Anders Sehistedt and Velouria... Both answers are equally perfect.

 
Posted : 17/01/2021 5:44 am
Share: