IF(ISERROR help

MOB

Well-known Member
Joined
Oct 18, 2005
Messages
1,055
Office Version
  1. 365
Platform
  1. Windows
I'm trying to do the following;

if vlookup1 returns an error, then vlookup2, if that returns an error then vlookup3, if that returns an error then return zero

Cant make it work!!

Any help would be appreciated
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Not entirely certain if it will work, but I believe you're looking for something like this

=IF(ISERROR(VLOOKUP1),IF(ISERROR(VLOOKUP2),IF(ISERROR(VLOOKUP3),0,VLOOKUP3),VLOOKUP2),VLOOKUP1)

Replace the VLOOKUP1-3 with your actual Vlookup, of course.
There may be (much) better ways to do this as well--I just don't know them.
 
Upvote 0
Nearly works - I think my description wasn't exactly what I'm after though lol

What I really need it to do is this;

If vlookup1 isnt an error, then vlookup1, then
If vlookup2 isnt an error, then vlookup2, then
If vlookup3 isnt an error, then vlookup3, then 0


I think that may actually be easier, but I cant get it to work!!
 
Upvote 0
I think I've got it to work with =if(not(iserror..........

But if there is a better way I'm all ears!

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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