Grouping/Subtotaling Data based on Criteria

skashat

New Member
Joined
Apr 22, 2011
Messages
8
Hello,

I have a set of data with about 8 different columns, and about 1,000 rows of raw data. The process to summarize this data right now, is to copy it all and paste it into an Access database. Access will then summarize all the data and spit it out back into Excel. I am wondering if I can do this in Excel alone.

The data on the left is a (simple) example of the raw data. The data on the right is how I want it to be.


-- removed inline image ---


The data on the right basically summarizes it based on Group. However, if I want to, I should be able to summarize it by Dept and/or Date. In this example, if I summarized it by Date alone, it should give me 33,000 total in one line.


I don't want to have to use subtotals or grouping. Is there a way to get what I want with Excel?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
It's probably doable but it would be a relatively hefty macro, or you would have to do a lot of manual calculations using SUMIFS worksheet functions.

The easiest way I'd suggest would be a Pivot Table. I don't know if you wrote it off because the format wouldn't be exactly like what you have or if you've considered it yet, but it's the easiest method for manipulating and summarizing large data sets.

I don't know how to meet your specifications exactly or if the pivot table grouping is specifically what you want to avoid, but figured I'd throw this idea into the hat for consideration in case it hadn't been yet.
 
Upvote 0
Thank you for the help and response.

I figured it would be doable through concatenations and sumifs, but I just wanted to see if basically there was already a built-in function in Excel that could get me what I want.

I think your way of using a pivot table would probably be the best route.

Thank you again for the help.
 
Upvote 0
Hi,
Welcome to MrExcel

Sorry to jump in here and I'm probably totally misunderstanding your question, but, could you not do part of it (Date,Dept,Group) with Advanced Filter, then use Sumifs for Amount? That is what I did with your sample data....


Excel Workbook
ABCDEFGHIJ
1DateDeptGroupAmount******
211/04/201141500**DateDeptGroupAmount
311/04/2011421000**11/04/2011411000
411/04/2011515000**11/04/2011422000
511/04/20115210000**11/04/20115110000
611/04/201141500**11/04/20115220000
711/04/2011421000*****33000
811/04/2011515000******
911/04/20115210000******
10***33000******
Sheet2



Just a thought.

Ak
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,239
Members
452,898
Latest member
Capolavoro009

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