How to sum with hidden rows inbetween?

Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
422
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all,

I have this setup at the moment:

1667900781353.png


However, when I search for "14-06-2022" I get a sum of 9964136,14 because my SUM formula takes all the hidden rows into account

When I plus all the numbers I get the correct amount of 372344,76

But it takes a lot of time to write "A1 + A101 + A102 + A103 + A104 etc...". Does anybody have a formula or technique to avoid calculating the hidden rows as well?

Thank you!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Something like this?

22 11 08.xlsm
AI
1Hdr1Hdr9
2a2
6a1
8a5
10a6
11
12
1314
Sum Visible
Cell Formulas
RangeFormula
I13I13=AGGREGATE(9,5,I2:I10)
 
Upvote 0
Solution
Something like this?

22 11 08.xlsm
AI
1Hdr1Hdr9
2a2
6a1
8a5
10a6
11
12
1314
Sum Visible
Cell Formulas
RangeFormula
I13I13=AGGREGATE(9,5,I2:I10)
I found out that SUBTOTAL(9; X:Y) also works!

But this does too! Thank you so much Peter!
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

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