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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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..
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,008
Members
448,935
Latest member
ijat

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