Forum

Notifications
Clear all

I have a formula that works except for when I use ISNA or IFERROR

5 Posts
3 Users
0 Reactions
156 Views
(@justmeok)
Posts: 16
Eminent Member
Topic starter
 

Hi All,

The formula below does exactly what I want but I haven't been able to "wrap" it so that if either result ends in N/A or some other error the formula returns a blank/zero answer. I'm sure it's a simple error on my part so would appreciate any help 🙂

=IF(L$4>$D$1,(VLOOKUP($A16,Budget!$A:$P,12,0)),(VLOOKUP($A16,'Current Data'!$A:$P,12,0)))*1.1

Thanks!

 
Posted : 01/08/2016 1:43 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Justmeok

Try this. I just removed some parenthesis from your formula and wrapped it in an IFERROR to display 0

=IFERROR(IF(L$4>$D$1,VLOOKUP($A16,Budget!$A:$P,12,0),VLOOKUP($A16,'Current Data'!$A:$P,12,0))*1.1,0)

Your original formula also tested OK with the IFERROR

=IFERROR(IF(L$4>$D$1,(VLOOKUP($A16,Budget!$A:$P,12,0)),(VLOOKUP($A16,'Current Data'!$A:$P,12,0)))*1.1,0)

No idea why it is not working for you

You can also try this.

=IFERROR(VLOOKUP(A16,IF(L$4>$D$1,Budget!$A:$P,'Current Data'!$A:$P),12,0)*1.1,0)

 
Posted : 01/08/2016 2:58 am
(@sunnykow)
Posts: 1417
Noble Member
 

Seems like this question was also posted in  http://www.mrexcel.com/forum/excel-questions/956061-need-wrap-formula-ignore-n-errors.html

 
Posted : 01/08/2016 10:21 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi justmeok,

Please read this on the use of IFERROR

If you post the same qs on multiple forums please say so on each forum and link to the qs.  Everybody who replies to your qs has spent their own time doing so and if the answer has already been provided elsewhere, that time is wasted.

Regards

Phil

 
Posted : 01/08/2016 7:13 pm
(@justmeok)
Posts: 16
Eminent Member
Topic starter
 

Oh my sincere apologies I did not even think of that as causing any issues! I will make sure that I do not make the same mistake again. Sorry for any inconvenience caused 

 
Posted : 13/08/2016 6:42 pm
Share: