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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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..


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TocogroupAuthor Commented:
Thank you very much indeed. I've never taken much notice of this feature before. Your explanation was perfect.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.