Formula adjustment

ironsides

Well-known Member
Joined
Aug 12, 2002
Messages
575
This formula below is correct as it stands
the Col AB range is .10 :999.99

I want to adjust this formula to include
subtract 10:19.99

=SUMIFS($AD$19:$AD$99599,$AD$19:$AD$99599,">=.10",$AB$19:$AB$99599,"<=999.99")

( the sum of Col AB : Add .10 to 9.99 subtract 10 to 19.99 add 20 to 999.99)
 

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
This formula below is correct as it stands

=SUMIFS($AD$19:$AD$99599,$AD$19:$AD$99599,">=.10",$AB$19:$AB$99599,"<=999.99")

I think you meant:

=SUMIFS($AD$19:$AD$99599,$AB$19:$AB$99599,">=.10",$AB$19:$AB$99599,"<=999.99")

In which case, try:

=SUMIFS($AD$19:$AD$99599,$AB$19:$AB$99599,">=.10",$AB$19:$AB$99599,"<1000")-2*SUMIFS($AD$19:$AD$99599,$AB$19:$AB$99599,">=10",$AB$19:$AB$99599,"<20")
 
Upvote 0
The sum I got was unexpected
I ran the program your way and my original.
The result was duplicate
I made adjustment but to no avail
 
Upvote 0
StephenCrump

This is the one that works

=SUMIFS($AD$19:$AD$95591,$AD$19:$AD$95591,">=.10",$AB$19:$AB$95591,"<1000")-2*SUMIFS($AD$19:$AD$95591,$AB$19:$AB$95591,">=10",$AB$19:$AB$95591,"<20")

Thank you for this formula
Matt
 
Last edited:
Upvote 0
This is the one that works

=SUMIFS($AD$19:$AD$95591,$AD$19:$AD$95591,">=.10",$AB$19:$AB$95591,"<1000")-2*SUMIFS($AD$19:$AD$95591,$AB$19:$AB$95591,">=10",$AB$19:$AB$95591,"<20")

No. That formula can't be correct.

If your original formula really was =SUMIFS($AD$19:$AD$99599,$AD$19:$AD$99599,">=.10",$AB$19:$AB$99599,"<=999.99") (which looks odd to me)

then you will need:

=SUMIFS($AD$19:$AD$95591,$AD$19:$AD$95591,">=.10",$AB$19:$AB$95591,"<10")-SUMIFS($AD$19:$AD$95591,$AD$19:$AD$95591,">=10",$AB$19:$AB$95591,"<20")+SUMIFS($AD$19:$AD$95591,$AD$19:$AD$95591,">=.20",$AB$19:$AB$95591,"<1000")

But that would be an even weirder sum!
 
Upvote 0
The answer is this
Your formula works when i changed.......<1000")-2*SUMIFS($A.... to

.....<1000")-1*SUMIFS($A.....

Again thanks

Matt
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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