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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

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