=SUBTOTAL behaving differently

seriousnick

New Member
Joined
Nov 4, 2011
Messages
16
Hi All and a Happy New Year

When using a filtered range, previously I was able to use AutoSum to sum the visible cells.
The formula applied to the resulting cell was always =SUBTOTAL(9, cell1, cell2, cell3, etc).
This meant that when I "unfiltered", the value remained the same (which is what I required).

Today, I am now only getting a range in the resulting formula - e.g. =SUBTOTAL(9, G5:G241).
In order to achieve my desired result, I can pick each total using CTRL but this will take an age.

Is there some switch I may have clicked perhaps? I am using the exact same excel on the same PC and only a week or 2 later.
Even if I go to a worksheet that had previously worked as above, when I delete the cell with the correct formula and try SUBTOTAL again - I get the range formula as opposed the individual cell formula.

I have tried all sorts of things like removing and reapplying filter, copying range to a new sheet, trying the total at the top of the range etc.

Also there appears no help from a google search.

Any help much appreciated.

All the very best

Nick
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
To my knowledge, Excel never automatically built: =SUBTOTAL(9, cell1, cell2, cell3, etc)
and always automatically referenced a range. You would need to build that kind of formula cell by cell.
 
Upvote 0
I don't think I've ever seen autosum do what you are describing (since the whole point of the SUBTOTAL function is to ignore filtered out cells).
 
Upvote 0
Thanks for prompt responses.
Hmm, very odd, a few days back, I would just click AutoSum and it would select the full range of the filtered results to the top row.
I have attached a screenshot of a recently created sheet.
I suppose if you guys don't know then nobody will!

subtotal2.jpg
subtotal2.jpg
 
Upvote 0
Assuming you somehow got that formula to build itself.... The SUBTOTAL function can only reference a maximum of 254 individual ranges, potentially limiting it usefulness.
 
Upvote 0
Not to go on too much about this, but please see shared screen video of the "auto subbing" in action.
For some reason it is now working on the original sheet created a few days ago, but still not on the other.
 
Upvote 0
For those who may be interested, the resolution to this issue is as follows:

I was trying to "sum" a list of "subtotals".
If the last subtotal is only totalling 1 row (and therefore will have the same value) the auto subbing does not work.
If I remove that single subtotal, (and the row containing the value it was totalling) then it works just fine.
Please see short video.
Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,721
Members
449,093
Latest member
Mnur

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