Index and Match matrix sum

slamanager

Board Regular
Joined
Apr 20, 2007
Messages
129
Hi,

can someone give me an example of a Index and Match to look at a table and give me the sum of the values.

col A contains the numbers (a4:a9)
1
2
3
1
2
3

B3 has the value "A" C3 has "B" up to G3 which has "F"

this matrix is populated with numbers its actually a pivot table pasted as values for 2 days three lines per day, i'm trying to build a formula matrix to total up all the values for the row and column inputs.

sum all the 1's in col B if the header is "A" the data is varible each day and i can get up to 100 unique returns and maybe not for each column.


Thanks

A,B,C,D,E,F
1 10,22,33,22,1,7
2 8,9,7,6,8,9
3 2,3,4,5,1,1
1 22,44,33,22,11,2
2 66,44,22,11,88,99
3 2,5,6,7,8,9

A/1 = 32
B/1 = 66
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi
Index/match will only return a single value, not a range to sum
Use sumif or sumifs or sumproduct

Excel Workbook
ABCDEFG
1ABCDEF
211022332217
32897689
43234511
5122443322112
62664422118899
73256789
8
9132666644129
1027453291796108
113481012910
Sheet1
 
Upvote 0
1] Your data in A3:G9 with heading A,B,C,D….in B3:G3

2] A12,B12 and A13,B13, enter A,1 and B,1

3] In C12, enter formula and copy down :

=SUMIF(A$4:A$9,B12,INDEX(B$4:G$9,,MATCH(A12,B$3:G$3,0)))

Regards
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,401
Members
448,893
Latest member
AtariBaby

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