Eliminating n/a from VLOOKUP's

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
593
Office Version
  1. 365
Platform
  1. Windows
I have 2 VLOOKUP's combined in the formula below. Trying to add to it to eliminate the #N/A error. Maybe I need an INDEX or MATCH but not sure on how to write it.

=E2&" ("&VLOOKUP(E2,$K$2:$L$33,2,FALSE)&" "&VLOOKUP(E2,$K$2:$M$33,3,FALSE)&")"




Thank you,
James
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Wrap each VLOOKUP function piece of your formula with an IFNA function, where you tell it what to return in the event of a non-match.
See: IFNA Function
 
Upvote 0
If you're using the latest version of Excel, I recommend using XLOOKUP instead of older lookup functions. XLOOKUP has a built-in parameter called [if_not_found] that lets you specify what to return if no match is found.

This is better than using IFNA, which hides all #N/A errors, including those already present in your data—not just the ones caused by the lookup.
 
Upvote 0
If you're using the latest version of Excel, I recommend using XLOOKUP instead of older lookup functions. XLOOKUP has a built-in parameter called [if_not_found] that lets you specify what to return if no match is found.

This is better than using IFNA, which hides all #N/A errors, including those already present in your data—not just the ones caused by the lookup.
I forgot about that cool option in the XLOOKUP function!
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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