Summing groups of figures from the same field.

passinthru

Board Regular
Joined
Jun 16, 2003
Messages
185
I have a table which has several fields as follows:

Project Name | Employee Name | Title | Hours


For each Project Name, I need to get the total hours by title. IOW, if on Project X there were 4 Junior Glass Polishers, 4 Senior Glass Polishers, and 1 Super Senior Spot Remover, I'd want three totals - the total number of hours expended by each of the three job titles that were assigned to that project. Something like:


Junior Glass Polishers: 82 hours
Senior Glass Polishers: 108 hours
Super Senior Really Tiny Spot Remover 14 hours


And I need those numbers for each project. Any given project might have any combination of the various Titles working on it.


I have created some basic queries in the past, but I have no clue how to structure this one.

Anyone feeling merciful today? :rolleyes:
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
This is pretty simple, you just need to use an Aggregate Query. In a query, pull in the three fields that you're wanting to see. Click the Sigma sign in your toolbar (the one that looks kind of like a Capital 'E'). You will now have a new 'Total' Row. By Default, all three fields will say 'Group By'. Leave the first two fields as they are and change the last one to 'Sum'. This will give you your desired results.
 
Upvote 0

Forum statistics

Threads
1,221,618
Messages
6,160,873
Members
451,674
Latest member
TJPsmt

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