Sumifs with multiple columns - Possible Vlookup needed

danvorn

New Member
Joined
Mar 10, 2015
Messages
3
I have data that I need to sum together and then use a vlookup to assign to an individual. I have been trying to use SUMIFS to use a double criteria, but it hasn't been working. Any ideas?

I want to be able to use a formula to pull and summarize the data below as follows

Cost A
Cost B
Cost C
Jeff
150
100
150
Jay
150
100
150
Kaylie
150
100
150

<tbody>
</tbody>


Here is an example of the data.

Jeff
Jay
Kaylie
A
Cost A
50
50
50
A
Cost A
100
100
100
C
Cost C
50
50
50
C
Cost C
100
100
100
B
Cost B
25
25
25
B
Cost B
75
75
75

<tbody>
</tbody>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
1​
JeffJayKaylieCost ACost BCost C
2​
ACost A
50
50
50
Jeff
150
100
150
3​
ACost A
100
100
100
Jay
150
100
150
4​
CCost C
50
50
50
Kaylie
150
100
150
5​
CCost C
100
100
100
6​
BCost B
25
25
25
7​
BCost B
75
75
75

H2, copied across and down:

=SUMIFS(INDEX($C:$E,0,MATCH($G2,INDEX($C:$E,1,0),0)),$B:$B,H$1)
 
Upvote 0
try this formula!

Book1
ABCD
1JeffJayKaylie
2Cost A505050
3Cost A100100100
4Cost C505050
5Cost C100100100
6Cost B252525
7Cost B75751
8
9
10Cost ACost BCost C
11Jeff150100150
12Jay150100150
13Kaylie15026150
Foglio2
Cell Formulas
RangeFormula
B11=SUMPRODUCT($B$2:$D$7*($A$2:$A$7=B$10)*($B$1:$D$1=$A11))
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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