Sum function in filtered row

Melika_Sn

New Member
Joined
Apr 27, 2022
Messages
5
Platform
  1. Windows
Hey guys,
I have an Excel file that I want to apply the sum-formula to the filtered rows as well. At present, the total value does not change when I filter the rows.

AM8=SUMIF(INDIRECT("Ordersheet!$AL$" & $AO$5 & ":$AL$" & $AO$8);INDIRECT("Ordersheet!$AK$" & $AO$5 & ":$AK$" & $AO$8);"<>NO";INDIRECT("Ordersheet!$AI$" & $AO$5 & ":$AI$" & $AO$8);"<>STORNO")
AO8 = =If (SUMPRODUCT(MAX(($A:$A<>"")*ROW($A:$A)))=7;8;SUMPRODUCT(MAX(($A:$A<>"")*ROW($A:$A))))
AO5=10
1652179990947.png
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
The aggregate function should make quick work of it.

MrExcelPlayground8-1.xlsx
ABCD
1Title4455
21
32
43
65
76
98
109
1110
Sheet21
Cell Formulas
RangeFormula
C1C1=AGGREGATE(9,5,A2:A11)
D1D1=AGGREGATE(9,4,A2:A11)
 
Upvote 0
The aggregate function should make quick work of it.

MrExcelPlayground8-1.xlsx
ABCD
1Title4455
21
32
43
65
76
98
109
1110
Sheet21
Cell Formulas
RangeFormula
C1C1=AGGREGATE(9,5,A2:A11)
D1D1=AGGREGATE(9,4,A2:A11)
Can you Please tell me how to add it to my formula? I get error :(
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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