Get VLOOKUP to return text on N/A and 0 results

cicjospencer

New Member
Joined
Mar 29, 2019
Messages
1
I have a VLOOKUP formula where if the result is "#N/A" or "0" I want the cell to return the text "not provided".

I'm sure a nested formula would work, but I can't figure it out. Here's my formula at present:

=IF(ISNA(VLOOKUP([Tracker Site ID],Table17,5,0)),"not provided",VLOOKUP([Tracker Site ID],Table17,5,0))

Any help is greatly appreciated.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the Board!

One way:
Code:
[COLOR=#333333]=IF(ISNA(VLOOKUP([Tracker Site ID],Table17,5,0)),"not provided",IF(VLOOKUP([Tracker Site ID],Table17,5,0)=0,"not provided",[/COLOR][COLOR=#333333]VLOOKUP([Tracker Site ID],Table17,5,0)[/COLOR][COLOR=#333333]))[/COLOR]
 
Upvote 0
Try

=IF(OR(ISNA(VLOOKUP([Tracker Site ID],Table17,5,0)),VLOOKUP([Tracker Site ID],Table17,5,0)=0),"not provided",VLOOKUP([Tracker Site ID],Table17,5,0))
 
Upvote 0

Forum statistics

Threads
1,223,445
Messages
6,172,177
Members
452,446
Latest member
walkman99

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