Subtotal: Sum & Count :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Subtotal: Sum & Count
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

Parra
Board Master


Joined: 22 Feb 2002
Posts: 636
Location: Los Angeles, CA
Flag: Mexico

Status: Offline

 Reply with quote  

Subtotal: Sum & Count

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

Post Fri Sep 19, 2003 3:53 pm 
 View user's profile Send private message Send e-mail

Mark W.
MrExcel MVP


Joined: 11 Feb 2002
Posts: 7146
Location: Austin, Texas USA
Flag: Usa

Status: Offline

 Reply with quote  

Re: Subtotal: Sum & Count

See the Data | Subtotals... menu command.

Post Fri Sep 19, 2003 3:55 pm 
 View user's profile Send private message

Parra
Board Master


Joined: 22 Feb 2002
Posts: 636
Location: Los Angeles, CA
Flag: Mexico

Status: Offline

 Reply with quote  

Re: Subtotal: Sum & Count

I know how to use the subtotal, but how do I SUM and COUNT at the same time. Is it possible.

Thanks

Post Fri Sep 19, 2003 4:16 pm 
 View user's profile Send private message Send e-mail

Mark W.
MrExcel MVP


Joined: 11 Feb 2002
Posts: 7146
Location: Austin, Texas USA
Flag: Usa

Status: Offline

 Reply with quote  

Re: Subtotal: Sum & Count

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.

Post Fri Sep 19, 2003 4:34 pm 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: Subtotal: Sum & Count

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.

Post Fri Sep 19, 2003 4:37 pm 
 View user's profile Send private message

Mark W.
MrExcel MVP


Joined: 11 Feb 2002
Posts: 7146
Location: Austin, Texas USA
Flag: Usa

Status: Offline

 Reply with quote  

Re: Subtotal: Sum & Count

quote:
Originally posted by Andrew Poulsom:
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.

Post Fri Sep 19, 2003 4:43 pm 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: Subtotal: Sum & Count

quote:
Originally posted by Mark W.:
quote:
Originally posted by Andrew Poulsom:
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 ..."

Post Fri Sep 19, 2003 4:44 pm 
 View user's profile Send private message

Parra
Board Master


Joined: 22 Feb 2002
Posts: 636
Location: Los Angeles, CA
Flag: Mexico

Status: Offline

 Reply with quote  

Re: Subtotal: Sum & Count

I have to go to a meeting, I'll work on it when I return.

I appreciate your responses.

Post Fri Sep 19, 2003 4:51 pm 
 View user's profile Send private message Send e-mail
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.