sum array with row & column with multiple variables

nularry

New Member
Joined
Sep 5, 2011
Messages
13
Office Version
  1. 365
Platform
  1. Windows
I have a database with different types of membership types in row 1; they do repeat depending on the member. There is actually 200 members with a total of 10 different types. In column 1 I have what they spent money on; again they do repeat. There is actually 15 different spending categories.
The object is to have a formula in cell B11 (Guest & Dues) add all the data that have that combination from the data field B2:G7.

Thank you for your help, I am really struggling with this.

Row/ColumnABCDEFG
1​
GuestIndividualIndividualFamilyFamilyGuest
2​
Food573215
3​
Dues262843
4​
Event986211
5​
Event659546
6​
Food573234
7​
Dues153742
8​
10​
GuestFamilyIndividual
11​
DuesNeed FormulaNeed FormulaNeed Formula
12​
EventNeed FormulaNeed FormulaNeed Formula
13​
FoodNeed FormulaNeed FormulaNeed Formula
Answer
GuestFamilyIndividual
Dues82316
Event221228
Food19820
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Try this

23 09 09.xlsm
ABCDEFG
1GuestIndividualIndividualFamilyFamilyGuest
2Food573215
3Dues262843
4Event986211
5Event659546
6Food573234
7Dues153742
8
9
10GuestFamilyIndividual
11Dues82316
12Event221228
13Food19820
nularry
Cell Formulas
RangeFormula
B11:D13B11=SUMPRODUCT(($B$1:$G$1=B$10)*($A$2:$A$7=$A11),$B$2:$G$7)
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Try this

23 09 09.xlsm
ABCDEFG
1GuestIndividualIndividualFamilyFamilyGuest
2Food573215
3Dues262843
4Event986211
5Event659546
6Food573234
7Dues153742
8
9
10GuestFamilyIndividual
11Dues82316
12Event221228
13Food19820
nularry
Cell Formulas
RangeFormula
B11:D13B11=SUMPRODUCT(($B$1:$G$1=B$10)*($A$2:$A$7=$A11),$B$2:$G$7)
Thank you, I forgot about sumproduct.
 
Upvote 0
You're welcome. Thanks for the follow-up. :)

.. and for updating your version details. (y)
 
Upvote 0

Forum statistics

Threads
1,215,089
Messages
6,123,058
Members
449,091
Latest member
ikke

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