How do I sum a total of different field values?

dvhornor

New Member
Joined
Jul 5, 2003
Messages
7
TABLE INFO:
SkillDate / Skill / NCO
2/22/04 / 45 / 23
2/21/04 / 46 / 3
2/2/04 / 47 / 10
2/25/04 / 45 / 8
2/22/04 / 48 / 203
2/22/04 / 46 / 156
2/22/04 / 47 / 103

Query1 (Criteria Selections)
Field: SkillDate / Skill / NCO
Table: table listed above
Sort
Show
Criteria:2/22/04 / 45
or: 2/22/04 / 46
2/22/04 / 47
2/22/04 / 48

Query1 Results
SkillDate / Skill / NCO
2/22/04 / 45 / 23
2/22/04 / 46 / 156
2/22/04 / 47 / 103
2/22/04 / 48 / 203

Query2 off of Query1
SkillDate / NCO (sum)
2/22/04 / 485

Is there a way to get the results in Query2 in Query1?
Can this be done in one query?[/img]
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hello,

Welcome to the board.

You can just set up 1 Query.

The following does assume that the skill is not important, it isn't in your example:

Query1 (Criteria Selections)
Field: SkillDate / NCO
Table: YourTable / YourTable
Total: Group By / Sum
Sort: Assending
Show: Tick / Tick
Criteria: 2/22/04

The 'Total' part comes from the Sigma sign on the toolbar, look like a backwards E.

Not sure if this is what is required with the limited information but it maybe a starting point.

Regards
 
Upvote 0
Thanks for the response. Actually the skill does matter, I should have clarified. I have over a hundred different skills in my table and I need to group some of them together for several aggregate sum totals.
 
Upvote 0
It may be worth either setting up a lookup table for the skills or adding another field to the skill table which will let you add a grouping clissification that you can then use to group by in your queries.

HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,221,626
Messages
6,160,909
Members
451,677
Latest member
michellehoddinott

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