Ignoring "#DIV/0!" cells in a formula that has a MAX formula embedded

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
578
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a column of scores some of which are #DIV/0!. In the adjacent column, I want to have each score as a percent of the maximum score in the original column. So in the second column, I use the following formula:

B2=($A2/MAX($A$2:$A$433))*100

If there are no cells with #DIV/0!, the formula works beautifully. I tried the ISERROR, IF, etc tricks that I found here or in other forums, but they all seem to only work with standalone MAX formulas, but not when the MAX is embedded in another formula/operation.

I would highly appreciate any help.

Thank you!
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
done longhand so brackets might be off but the below should work:

=($A2/MAX(if(isnumber($A$2:$A$433),
$A$2:$A$433)))*100

...entered wit control + shift + enter, not just enter
 
Upvote 0
Thanks a lot!
control + shift + enter is a miracle :)
 
Upvote 0
If you have Excel 2010 or newer, this also works:

B2=($A2/AGGREGATE(4,6,$A$2:$A$433))*100

No CSE needed.
 
Upvote 0
Thanks for the AGGREGATE function! It is so versatile and useful. Great to learn.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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