vlookup returning #N/A and I have no idea why - need help please

buroh

New Member
Joined
Jul 14, 2020
Messages
43
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am getting annoyed by this and I cannot work out why the vlookup formula is returning #N/A when the value it is looking for exists.

the cells:

column C column D column E column F
lookupresult
1100101
#N/A​
1100101Triple Bay
1100201Triple Bay
1100301Triple Bay
1100401Triple Bay
1100500Triple Bay
1100501Triple Bay

formula in D2

=VLOOKUP(C2,E2:F7,2,FALSE)

my formula; pretty simple right? The result I get below:

#N/A​

Column C is a formula result of extracting 1st 7 digits of number/text

Steps I took:

1. copied the formula result of Column C and paste it as value in another column and changed vlookup to look up that value - same result
2. copied it all to a new spreadsheet - same result
3. copied column E and F and paste it as values to another sheet; same result

I don't know what to do next, I am stuck on trying to solve this.

Wayne
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I suspect that the formula result in C2 is text and the values in column E are numeric.

Try putting +0 on the end of the C2 formula. That should then return a number in C2 instead of text and I suspect that your VLOOKUP will then work.

If you don't want to actually change the C2 value, then another option is to try this formula in D2
Excel Formula:
=VLOOKUP(C2+0,E2:F7,2,FALSE)
 
Upvote 0
Solution
I suspect that the formula result in C2 is text and the values in column E are numeric.

Try putting +0 on the end of the C2 formula. That should then return a number in C2 instead of text and I suspect that your VLOOKUP will then work.

If you don't want to actually change the C2 value, then another option is to try this formulka in d2
Excel Formula:
=VLOOKUP(C2+0,E2:F7,2,FALSE)
Thank you, that worked.

Weird, the format of the number has now changed, it was displaying off colour, I thought it was my screen, but as soon as I put the +0 in the formula, the colour was not off and formula worked.

So would a =LEFT formula produce the result in TEXT rather than General / Numeric?
 
Upvote 0
I have used NUMBERVALUE in conjunction with my LEFT formula to produce a number result rather than text,
That is fine if you want to use that, but a simple +0 would do the same thing :)
 
Upvote 0

Forum statistics

Threads
1,215,047
Messages
6,122,858
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top