combining Sumifs and Subtotal

juca73

New Member
Joined
Dec 30, 2017
Messages
40
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Morning,

Currently i have the following formula

=SUMIFS(Data!$M$7:$M$3440,Data!$M$7:$M$3440,">"&Sheet1!B5,Data!$M$7:$M$3440,"<"&Sheet1!C5)

M7:M3440 is the column where the sum is found
B5 is the cell that contains the lower number
C5 is the cell that contains the higher number

The above works perfectly however, when i filter the columns in the data sheet i want the figures to adjust accordingly.

I think it will be a combination of sumproduct and subtotal but struggling with the higher and lower than functions in formula.

Thanks in advance
 

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.
Morning,

Currently i have the following formula

=SUMIFS(Data!$M$7:$M$3440,Data!$M$7:$M$3440,">"&Sheet1!B5,Data!$M$7:$M$3440,"<"&Sheet1!C5)

M7:M3440 is the column where the sum is found
B5 is the cell that contains the lower number
C5 is the cell that contains the higher number

The above works perfectly however, when i filter the columns in the data sheet i want the figures to adjust accordingly.

I think it will be a combination of sumproduct and subtotal but struggling with the higher and lower than functions in formula.

Thanks in advance
Sorry formula should be

=SUMIFS(Data!$AE$7:$AE$3440,Data!$M$7:$M$3440,">="&Sheet1!B5,Data!$M$7:$M$3440,"<="&Sheet1!C5)

AE7:AE3440 is the column to be totalled
 
Upvote 0
I would add a helper column to the data sheet using
Excel Formula:
=SUBTOTAL(3, A7)
change the A7 to a column that will always have data & then you can use
Excel Formula:
=SUMIFS(Data!$AE$7:$AE$3440,Data!$M$7:$M$3440,">="&Sheet1!B5,Data!$M$7:$M$3440,"<="&Sheet1!C5,Data!$AF$7:$AF$3440,1)
changing column AF to the column with the subtotal function.
 
Upvote 0

Forum statistics

Threads
1,215,751
Messages
6,126,668
Members
449,326
Latest member
asp123

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