How to sum with hidden rows inbetween?

Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
445
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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,939
Messages
6,175,530
Members
452,651
Latest member
wordsearch

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