Sum numbers in a query while grouping???

afs24

Board Regular
Joined
Sep 26, 2002
Messages
237
I'm trying to group together employee data. An individuals badge number will show up in the table numerous times (ex: badge # 1234 will show up 5 times in five differnet rows in the table). I only want the badge number to show up once. The 2nd column is named Total, which could be 1-3. I want my query to group each badge number and count, not sum, all the 1's and 2's excluding the 3's. What would the query criteria look like (DCount)? How would I write it? I'm trying to goup the badge number and count the Total column but it counts the 3's. The formulas I'm using to exclude the 3's are not working? HELP!!!!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,221,499
Messages
6,160,169
Members
451,629
Latest member
MNexcelguy19

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