Home Case Studies MS Office Tips and Tricks Sample Code Helpful Videos Custom Development  Custom Training Join Us Contact Us
Search Our Site:  

Excel Subtotals (And Subtotals (and...

Subtotals are powerful way of summarizing data in Excel, but they require some caution. When thinking about Excel subtotals, it’s best to think about how a person would manually create subtotals: start with a pile of paperwork and put it all in order. If you wanted to subtotal by month, you would group all of your data by months. If you were subtotaling by customer, you would divide up all of your receipts and invoices by customer. If you wanted month AND customer, you’d have to divide everything into piles of months, and then sort each pile by customer.

The same process applies to subtotals in Excel. It’s important to use the Sort function and sort data before trying to subtotal it. In the example above, we wanted to sort by month and customer. So in Excel we would sort our data using Month as the Primary key, and Customer as the secondary key shown below.


Are You Ready For Office 365?


Office 365 is

  • Email and calendaring powered by Microsoft Exchange
  • Office Web Apps - the office productivity apps you already know, tailored for the web
  • Websites powered by Microsoft SharePoint both for internal-facing intranet and customer-facing website
  • Instant Messaging and Online Meetings powered by Microsoft Lync
  • All with a financially-backed 99.9% uptime guarantee

Sign up for a free trial:

Name
Company
Email Address

Your information will not be shared with any other party. You must provide a valid email in order to recieve your login information and starting information kit.

Watch this video  to see how Office 365 can help your business.

After sorting, go to Data and click Subtotals. You’ll see the dialog box below. As our first subtotal, choose to insert a line At each change in: Month. Excel will force a line between rows whenever the Month changes, and on that row will place the Sum of all Receipts and Payments.

We’re not done yet, since we also want a breakdown by customer within the month. Go back to Data, Subtotals and bring up the dialog box again. This time, choose At each change in: Customer and be sure to clear the checkbox marked Replace current subtotals circled in red.

       

You’ll see your data broken down by customer and by month with subtotals and grand totals at the bottom. You can keep going with finer and finer subtotals but don’t forget that all of your data must be sorted appropriately before subtotaling!
 
Please share your comments on this article!

 
Name (opt)
Email Address (opt)
Your Questions/
Comments

I Get It! Development does not share your email address or other information, nor do we add you to any mailing lists unless you specifically request to be added by checking the box below.



SEE ALSO
You may also find the following articles useful:

Calculate Growth Rates In Excel

Spreadsheet vs. Database

Pimp My Spreadsheet!

Amazing Excel Comments

Deduplicate Excel Data

Excel - Access Import Problems

Circular References

Custom Formats In Excel

Auto Update Charts

Data Quick Check In Excel

Advanced Sorting In Excel

Excel Text/Date Formulas

Named Ranges

Paste Special Tricks

Auto Fill In Excel

References

Journal of Accountancy Articles

Tweaking The Numbers

Block That Spreadsheet Error

Excel Security Issues


 

Clients

Do you need help with Microsoft Office? Contact us

See how we've helped companies like yours develop effective business processes

Client Success Stories


 

Consultants

I Get It! Consultants set their own hours, work with their own clients, and choose their own projects.

If you're a Microsoft Office guru and would like to explore being a full-time consultant, please see our consultant information pages.