VLOOKUP Error #N/A Array Containing Formulas

G00DNESS

Board Regular
Joined
Aug 6, 2014
Messages
59
From Cell D37
I entered the formula:
Code:
[/SIZE][SIZE=1]=IF(OR(B37="",L36=""),"",IF(L36="SD",VLOOKUP(B37,H9:L33,4,0),IF(L36="MM",VLOOKUP(B37,H9:L33,5,0))))[/SIZE]
[SIZE=1]
The typed in value of D37 is 13.
H9:H33 have formulas that produce numeric values.
The formula-generated value in H15 is also 13.
This formula returns #N/A
There are some blank cells in Row H, but in row after H15.
If I type 13 in H15, my formula works, but not when 13 is generated from the formula within H15.
Code:
[/SIZE][SIZE=1]The formula in H15 is: =IF(I15="","",IF(OR(D15="",E15="",F15="",P15=""),"","13"))[/SIZE]
[SIZE=1]


Any help with this error is much appreciated.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

joeu2004

Well-known Member
Joined
Mar 2, 2014
Messages
3,028
Office Version
  1. 2010
Platform
  1. Windows
Change "13" to 13 -- remove the quotes. Never [1] put double-quotes around numbers that you expected to be interpreted numerically.


-----
[1] Never say "never". There is one exception that I use myself. But it applies only to numbers that are used in expressions; and I'm one of very few people that ever need to do it.
 
Last edited:

G00DNESS

Board Regular
Joined
Aug 6, 2014
Messages
59
Change "13" to 13 -- remove the quotes. Never [1] put double-quotes around numbers that you expected to be interpreted numerically.


-----
[1] Never say "never". There is one exception that I use myself. But it applies only to numbers that are used in expressions; and I'm one of very few people that ever need to do it.
Thanks so much Joeu004! Works well.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,083
Messages
5,639,977
Members
417,120
Latest member
Pavithra devi

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
Top