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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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