Vlookup reporting FALSE with 2 VLookup Functions.

EddieD

New Member
Joined
Jun 12, 2014
Messages
24
Office Version
  1. 365
Platform
  1. MacOS
Good afternoon,

I am building a VLookup formula that is to perform a different VLookup calculation, depending upon a selection box in another cell.

I want the first argument to look up C11. If C11 = 'NEW', then perform a certain VLookup calc.
If it is anything other than 'NEW', then perform another VLookup calculation.

Currently it works fine when NEW is selected, but when anything else is selected, it reports back as FALSE in my cell.
Not sure what I'm doing wrong. Any advice?

=IF(C11="NEW",IFNA(VLOOKUP($A11,'SHEET'!1:$238,51,FALSE),IFNA(VLOOKUP($A11,'SHEET'!1:$238,63,FALSE),"")))

Thank you.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Z51

Well-known Member
Joined
Dec 12, 2007
Messages
725
Office Version
  1. 365
  2. 2016
Maybe this will work?
Excel Formula:
=IFERROR(IF(C11="NEW",VLOOKUP($A11,'SHEET'!1:$238,51,0),VLOOKUP($A11,'SHEET'!1:$238,63,0)),"")
 
Upvote 0
Solution

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
2,194
Office Version
  1. 365
Platform
  1. Windows
Try this
=IF(C11="NEW",IFNA(VLOOKUP($A11,SHEET!1:$238,51,FALSE),"NA Found"),IFNA(VLOOKUP($A11,SHEET!1:$238,63,FALSE),""))
 
Upvote 0

Forum statistics

Threads
1,186,774
Messages
5,959,713
Members
438,442
Latest member
azedin4

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