Help with IF, IFERROR, VLOOKUP nested formula

greylurcher

New Member
Joined
Jun 12, 2015
Messages
5
Hi

I need a wee bit of help with this one, my iferror and vlookup works fine:

=IFERROR(VLOOKUP(E12,Sheet1!A3:A93,1,FALSE),"No")

However, instead of returning the value from column 1 in the vlookup I want it to return "Yes", I tried:

=IF(IFERROR(VLOOKUP(E11,Sheet1!A2:A92,1,FALSE),"No"),"","Yes")

and

=IF(IFERROR(VLOOKUP(E11,Sheet1!A2:A92,1,FALSE),"No"),"No","Yes")

Greateful for any insights.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try

=IFERROR(IF(VLOOKUP(E12,Sheet1!A3:A93,1,FALSE),"Yes"),"No")

Afraid not give me all no's :(

=IFERROR(IF(VLOOKUP(E17,Sheet1!A8:A98,1,FALSE),"Yes","No"),"No") Which gives me all 'Yes' or 'No' depending on the condition I put in there.
 
Last edited:
Upvote 0
Try

=IFERROR(IF(ISTEXT(VLOOKUP(E12,Sheet1!A3:A93,1,FALSE)),"Yes",""),"No")

Note - the If has to go inside the iferror, otherwise it will never get there.

Edit: Actually you don't need the iferror

=IF(ISTEXT(VLOOKUP(E12,Sheet1!A3:A93,1,FALSE)),"Yes","No")
 
Last edited:
Upvote 0
You are a star!! :)

The one using IFERROR gave me blank instead of NO, but the second one works perfectly.

Thank you for the tip to make sure I put an IF statement inside and IFERROR.

I allow you to go get an ice cream for your efforts :)
 
Upvote 0
You're welcome, using istext returns True or False, an error is seen as False, hence no need for the inferror.

Mint Magnum it is, 24 degrees here so good call :)
 
Upvote 0

Forum statistics

Threads
1,214,626
Messages
6,120,602
Members
448,974
Latest member
ChristineC

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