Change formula so iferror works in 2003

caritx

New Member
Joined
Dec 1, 2009
Messages
34
Hi All,

I have this formula that works great in 2007 but I'm trying to save the file for 2003 and it wont work. Can someone please help me replace the iferror with something that will do the same get rid of my #n/a in this really long formula.


=IF(E2="Y","trib",IF(ISNUMBER(SEARCH("*holi09*",AI2)),"holi09",IFERROR(VLOOKUP(AI2,'Solicitation codes'!$A$2:$C$4000,2,FALSE)," ")))


Thanks!
Cari
<o:p></o:p>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Welcome to the board!

=iferror(expression," ")

is equivalent to (2003-friendly version):

=if(iserror(expression)," ",expression)

Hope that helps.
 
Upvote 0
Welcome to the Board!

Replace this part:
IFERROR(VLOOKUP(AI2,'Solicitation codes'!$A$2:$C$4000,2,FALSE)," ")
with
IF(ISNA(VLOOKUP(AI2,'Solicitation codes'!$A$2:$C$4000,2,FALSE))," ",VLOOKUP(AI2,'Solicitation codes'!$A$2:$C$4000,2,FALSE))
 
Upvote 0
Try

=IF(E2="Y","trib",
IF(ISNUMBER(SEARCH("*holi09*",AI2)),"holi09",
IF(ISNA(VLOOKUP(AI2,'Solicitation codes'!$A$2:$C$4000,2,FALSE))," ",
VLOOKUP(AI2,'Solicitation codes'!$A$2:$C$4000,2,FALSE))))
 
Upvote 0
Just a note on the previous responses.

Be very careful if you use ISERROR instead of ISNA. ISERROR will ignore a bunch of different errors, not just ISNA errors.
So if you have other errors in your data or formula, they may be ignored and can cause unexpected results. ISNA will only ignore the ISNA error.
 
Upvote 0
Thank you all for all your help! I use this board a lot since I'm new and teaching myself formulas and vba. :LOL:
 
Upvote 0
Just a note on the previous responses.

Be very careful if you use ISERROR instead of ISNA. ISERROR will ignore a bunch of different errors, not just ISNA errors.
So if you have other errors in your data or formula, they may be ignored and can cause unexpected results. ISNA will only ignore the ISNA error.

Good point. I've definitely had this happen to me before, where iserror() caused me to miss a different error. Time to change my ways.
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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