Adding "ISERROR" to Formula?

~EVH~

New Member
Joined
Jul 1, 2009
Messages
6
I'm trying to avoid the "#N/A" result from each of the below formulas... I've tried to add the "ISERROR" function to each of the below, but must be screwing something up.

Can I trouble you folks for the proper way of adding the "ISERROR" function for each of the below formulas?

Formula #1:
=IF(SUM(E3:AC3)=0,"0",LOOKUP(9.99999999999999E+307,E3:AC3))

Formula #2:
=LOOKUP(9.99999999999999E+307,E3:INDEX(E3:AC3,MATCH(9.99999999999999E+307,E3:AC3)-1))


Thanks in advance! :)
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I'm trying to avoid the "#N/A" result from each of the below formulas... I've tried to add the "ISERROR" function to each of the below, but must be screwing something up.

Can I trouble you folks for the proper way of adding the "ISERROR" function for each of the below formulas?

Formula #1:
=IF(SUM(E3:AC3)=0,"0",LOOKUP(9.99999999999999E+307,E3:AC3))

Formula #2:
=LOOKUP(9.99999999999999E+307,E3:INDEX(E3:AC3,MATCH(9.99999999999999E+307,E3:AC3)-1))


Thanks in advance! :)

Define BigNum via Insert|Name|Define as referring to:

=9.99999999999999E+307

If really necessary to avoid #N/A...

=IF(COUNT(E3:AC3),LOOKUP(BigNum,E3:AC3),0)

=IF(COUNT(E3:AC3)>1,LOOKUP(BigNum,E3:INDEX(E3:AC3,MATCH(BigNum,E3:AC3)-1)),0)
 
Upvote 0
Define BigNum via Insert|Name|Define as referring to:

=9.99999999999999E+307

If really necessary to avoid #N/A...

=IF(COUNT(E3:AC3),LOOKUP(BigNum,E3:AC3),0)

=IF(COUNT(E3:AC3)>1,LOOKUP(BigNum,E3:INDEX(E3:AC3,MATCH(BigNum,E3:AC3)-1)),0)

Thank you, Aladin!!!

I'm curious... in the first formula, how come you don't have to define a variable (e.g., >, <, =, etc.) as you did in the second formula, such as:

=IF(COUNT(E3:AC3)>???,LOOKUP(BigNum,E3:AC3),0)
 
Upvote 0
Thank you, Aladin!!!

You are welcome.

I'm curious... in the first formula, how come you don't have to define a variable (e.g., >, <, =, etc.) as you did in the second formula, such as:

=IF(COUNT(E3:AC3)>???,LOOKUP(BigNum,E3:AC3),0)

IF(COUNT(E3:AC3)

is the same as

IF(COUNT(E3:AC3) > 0

A non-zero count means a TRUE result, which leads to the evaluation of the LOOKUP bit, a 0 count leads to 0 as result. That's the reason why the > 0 test is often omitted.
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,904
Members
449,194
Latest member
JayEggleton

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