Auto Filter totaling

chipsta040365

New Member
Joined
Apr 22, 2009
Messages
14
Hello everyone,

I have a report that i export to excel.

I setup autofilter, so they can sort the report any which way they like.

i.e. by rep, by style, by category,etc.

The report has a Cost field that i want to have an auto total box or window or cell that will always total no matter which sort method they use.

I know how to use the Autosum (Greek E), but i do not know how to put that calculation so that no matter what sort is used, it will only add what was sorted out.

Any Help Would be Greatly appreciated.

Thank You
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hello everyone,

I have a report that i export to excel.

I setup autofilter, so they can sort the report any which way they like.

i.e. by rep, by style, by category,etc.

The report has a Cost field that i want to have an auto total box or window or cell that will always total no matter which sort method they use.

I know how to use the Autosum (Greek E), but i do not know how to put that calculation so that no matter what sort is used, it will only add what was sorted out.

Any Help Would be Greatly appreciated.

Thank You

Maybe:

=SUBTOTAL(9,RangeToSum)
 
Upvote 0
Thanks for the reply,

Maybe i need to clarify a little bit.

This spreadsheet is over 18000 rows.

I use the autofilter feature to reduce down to specifics

What i need is a hidden or frozen Cell location that i can put the Autosum Calculation.

I want this to be able to auto calculate the sums of the various Sorts.

i.e. category hats = 10000 for the whole spreadsheet.
i want the total to autosum with each selection
i.e. i auto filter on one rep, he has only 4 rows of the 10000 and i only want the 4 rows which would total 4 X cost.

Does this sound like it can be done?
 
Upvote 0
Aladin gave you the correct formula, replace 'RangeToSum' with your data range for the column you are totalling. i.e. if your data in column B is in B2 to B18500 the formula would be:

Subtotal(9,B2:B18500)

This will only add the visible cells after any filter is applied.
 
Upvote 0
Thanks Andy.

I figured out the correct formula and put it 5 lines below bottom.

I did not realize that the filtered rows would not add.

I was trying to put the calculation in another Column, and those numbers were way Off.

Putting the Calculation at the bottom Appears to be working Well.

Thanks for all the help everyone.
 
Upvote 0

Forum statistics

Threads
1,215,635
Messages
6,125,945
Members
449,275
Latest member
jacob_mcbride

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