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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
This formula should work. You need to use Ctrl-Shift-Enter to enter the formula

=MAX(IF(ISERROR(C2:C6),0,C2:C6))
 
Upvote 0
is there a significant gain using IsNumber instead of IsError?
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,518
Messages
6,119,985
Members
448,935
Latest member
ijat

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