VLOOKUP from formula

dandanfielding

New Member
Joined
Apr 1, 2023
Messages
5
Office Version
  1. 2010
Platform
  1. Windows
Is there an issue with VLOOKUP where the lookup value is the result of a formula? I am getting #N/A error on this formula: =VLOOKUP(B12,Tables!P2:Q35,2,FALSE). The formula in cell B12 is =ROUND((D6+D8)/2,0). I found other threads that recommended I confirm that B12 is formatted as a number, and it is. Just in case, I tried one of the fixes I saw, adding a +0 to the formula to make it look like this: =VLOOKUP(B12+0,Tables!P2:Q35,2,FALSE). So far I have been unable to resolve this error. Any ideas?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Are the values in col P also numbers rounded to 0 decimal places?
 
Upvote 1
Solution
Are the values in col P also numbers rounded to 0 decimal places?
Great catch, they were not! I imported data from another source and didn't check the formatting. I have egg on my face, such a simple solution! Thank you!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,107
Messages
6,128,869
Members
449,475
Latest member
Parik11

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