Subtotal: Sum & Count

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
I need to subtotal some data, but I need to sum one column and to count another.

Any suggestion on how I can do this.

Thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I know how to use the subtotal, but how do I SUM and COUNT at the same time. Is it possible.

Thanks
 
Upvote 0
Not "at the same time". I'd use the Subtotal... command to create sums and then change the 1st argument of the resultant SUBTOTAL function from 9 to 2 as needed.

Perhaps, a PivotTable may work as well.
 
Upvote 0
Do it first with SUM on the first column. Then do it again with COUNT on the second column, making sure Replace current subtotals is unchecked.

Or do both columns with SUM and change the first argument for the SUBTOTAL function from 9 to 3 for the column you want to count. You can use Edit|Replace for this.
 
Upvote 0
Andrew Poulsom said:
Do it first with SUM on the first column. Then do it again with COUNT on the second column, making sure Replace current subtotals is unchecked.

Andrew, the problem with this approach is the an additional row is inserted into the list.
 
Upvote 0
Mark W. said:
Andrew Poulsom said:
Do it first with SUM on the first column. Then do it again with COUNT on the second column, making sure Replace current subtotals is unchecked.

Andrew, the problem with this approach is the an additional row is inserted into the list.

That's why i said "Or ..."
 
Upvote 0
I have to go to a meeting, I'll work on it when I return.

I appreciate your responses.
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,449
Members
449,083
Latest member
Ava19

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