query using different fields for rows and columns

coline

New Member
Joined
Apr 18, 2003
Messages
37
Hi, thanks in advance for the help. I would like to create a query that indicates sums grouped by 3 separate fields. I currently understand how to group by values in one field, but I'm not sure how group by more than one field. Each of my "group by" fields are binary, so I want to create sums when the data in each respective field is "yes". (Basically sum when the criterian is "yes" to any of my three fields, and then group by each of these fields.) Here is how the existing table looks:


Group Var 1 Group Var 2 Group Var 3 Sum Var 1 Sum Var 2 Etc.
(binary) (binary) (binary)

I would like my query output to look like this

Sum Var 1 Sum Var 2 Sum Var 3 etc.
Group Var 1
Group Var 2
Group Var 3

Thanks for the help!
Coline
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,221,621
Messages
6,160,879
Members
451,675
Latest member
Parlapalli

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