Query: Group by, Sum

dkubiak

Board Regular
Joined
May 17, 2004
Messages
137
Office Version
  1. 2013
Platform
  1. Windows
I can't figure this one out. I built a query to calculate my "on hand quantity" for an inventory database. I have three columns: 'QPartNumber', 'Issue', and 'Received.' I simply want it to group by 'QPartNumber' and give me the sum of 'Issue' and the sum of 'Received.'

When I tested it, I get back double the actual amount in those columns. I even deleted every record, entered one with the value of '4' in 'Issue'. The query gave me the sum of 8!!! :oops:

Please help!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

cstlaurent

Board Regular
Joined
Jan 14, 2005
Messages
182
Can you post the query that you have.

I connot see why it is doing so.. Do you have other criteria like a date or something that you are using..
 

dkubiak

Board Regular
Joined
May 17, 2004
Messages
137
Office Version
  1. 2013
Platform
  1. Windows
Well, I rebuilt the query using the wizard and it works. I compared my query and the wizard-query and could find no differences. So, to ease my frustration I deleted the one that didn't work.

If I have a chance I will rebuild it later and post it here for all to ponder.
 

Forum statistics

Threads
1,181,819
Messages
5,932,241
Members
436,826
Latest member
Rsavary

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
Top