How do I create subtotals in an Excel worksheet without manually entering the formulae ?

Hi Experts,

I have a simple Excel worksheet comprising between 10 and 12,000 rows. I want to be able to summarise the data with subtotals to 3 levels:
1. At Customer level
2. At Account number level (within Customer)
3. At Product Code level (within Account no)

I'd like to be able to group the rows and show subtotals for each of these 3 levels such as using the Outlines feature in Excel. However, I do not want to go through all 12,000 rows grouping by Customer or by Account No. It would take forever. Is there a quick method of achieving this in Excel ?

Thanks for your help
Who is Participating?
Saurabh Singh TeotiaCommented:

You can do this easily by using the data-->subtotal feature...

I'm assuming your data is sorted by customer level then account number and at product code level..

Apply subtotal first at each change in customer level and what ever you want to do count,sum.. Then post applying that..apply again subtotal on account number and uncheck the option of replace current will give you subtotal on customer and then account level...then you can repeat the same step for product and uncheck the option of replace current subtotal..this will do what you are looking for..

TocogroupAuthor Commented:
Thank you very much indeed. I've never taken much notice of this feature before. Your explanation was perfect.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.