Nesting with #DIV/0!

Celticshadow

Active Member
Joined
Aug 16, 2010
Messages
419
Office Version
  1. 365
Platform
  1. Windows
Hi All

I have the below formula which sums percentages in a row but ignores the #DIV/0!. I would like to know how if one of the percentages in the row exceeds say 100% how would I subtract that from the formula.

This is how the formula presently looks as below:

=SUMIF(A1:A11,"<1E100")

Which is summing the below figures to a total of 319%

71% 45% 140% 63%

As there is a percentage above 100% in the row (ie140%) I require to minus that figure from the total and I am unsure how to that within the above formula. Any help would much appreciated, I apologise as I should have included this in my original thread (Summing Ignoring #DIV/0!).

Thanks in advance.

Kind Regards










<table border="0" cellpadding="0" cellspacing="0" width="256"><col span="4" width="64"><tr height="17"> <td class="xl22" style="height:12.75pt;width:48pt" height="17" width="64">
</td> <td class="xl22" style="width:48pt" width="64">
</td> <td class="xl22" style="width:48pt" width="64">
</td> <td class="xl22" style="width:48pt" width="64">
</td> </tr></table>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I would add an if statement in column B to check if its over 100%, then sumif if they're not.

=SUMIF(B1:B11,FALSE,A1:A11)

D
 
Upvote 0
Hi Tuelor

First of all thanks for replying.

I am not sure I undertand that as when I enter it in to B (which contains a 100% fig) all I get is a zero. Is it possible to nest it in some way.

Kind Regards
 
Upvote 0
Ok - try...

=SUMPRODUCT(A1:A11,IF(A1:A11<100,1,0))

..but make sure you enter it as a formula array (ie after entering the forumla press ctrl+shift+enter ands not the normal enter)
 
Upvote 0
Hi All

I have the below formula which sums percentages in a row but ignores the #DIV/0!. I would like to know how if one of the percentages in the row exceeds say 100% how would I subtract that from the formula.

This is how the formula presently looks as below:

=SUMIF(A1:A11,"<1E100")

Which is summing the below figures to a total of 319%

71% 45% 140% 63%

As there is a percentage above 100% in the row (ie140%) I require to minus that figure from the total and I am unsure how to that within the above formula. Any help would much appreciated, I apologise as I should have included this in my original thread (Summing Ignoring #DIV/0!).

Thanks in advance.

Kind Regards
Just add another SUMIF to the end like this...

=SUMIF(A1:A11,"<1E100")-SUMIF(A1:A11,">1")

Or, we can get fancy and use something overly complicated like this...

=SUM(SUMIF(A1:A11,{"<1E100",">1"})*{1,-1})
 
Upvote 0
Or, this which is probably the best option...

=SUMIF(A1:A11,"<=1")

Assuming you want to include values that are 100%.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

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