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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,224,297
Messages
6,177,743
Members
452,797
Latest member
prophet4see

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