Group or Sum alike records

noletwin1

New Member
Joined
May 17, 2013
Messages
25
I am running a query that pulls in thousands of rows of data that include: agency, date, product. But, it gives me a complete list of every transaction. I want it to combine products for a date for an agency. Does that make sense? I guess I want it to do what a pivot table would do, but don't know how to do it in access.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Those are known as Aggregate Queries, where you usually group by certain fields, and may take mathematical functions of others (like SUM, AVG, MIN, MAX).
The link mole99 sent shows how to do it via the SQL code directly, but in using the Query Builder, just hit the Totals button (looks like a Sigma).
That will add a Totals row under each field, and you can decide which fields you want to group by, and which ones you want to apply a function to (all displayed fields MUST have a selection in this Totals row).
 
Upvote 0

Forum statistics

Threads
1,221,771
Messages
6,161,847
Members
451,723
Latest member
Rachetsely

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