max function with division by 0

tstoneh

Board Regular
Joined
Feb 2, 2004
Messages
126
How do you get a max calc for a row of averages when they have division by 0 errors?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
This formula should work. You need to use Ctrl-Shift-Enter to enter the formula

=MAX(IF(ISERROR(C2:C6),0,C2:C6))
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
Cbrine said:
This formula should work. You need to use Ctrl-Shift-Enter to enter the formula

=MAX(IF(ISERROR(C2:C6),0,C2:C6))

Why not IsNumber instead of IsError?
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
is there a significant gain using IsNumber instead of IsError?
 

tstoneh

Board Regular
Joined
Feb 2, 2004
Messages
126

ADVERTISEMENT

Thanks for the help. You folks are the best. (y)
 

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
Thought Process
1. Is no function ISDIV/0. Need think harder.
2. No like ISERROR, like using spear to hunt fish.
3. Brain says ISERROR only way, brain says Aladin no like, use anyway.
4. Use ISERROR.

No reason, I was thinking of excluding the errors, as opposed to including the numbers. I bow to your expertise on the matter, IsNumber is a better way then to use the full scope iserror function.
 

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
firefytr said:
is there a significant gain using IsNumber instead of IsError?

I don't think there is a gain, other then using the right function for the formula. The iserror function will filter every error, regardless of it being one you anticipated or one that you didn't notice, that you should have resolved. Instead with the ISerror, you have smooth over an error you should have corrected.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
firefytr said:
is there a significant gain using IsNumber instead of IsError?

Adding to Cbrine's: It is in positive mood, so lots easier for human cognition to process.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,096
Messages
5,768,061
Members
425,451
Latest member
JohnBrooksBiddle

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
Top