Sumifs and array question

Blitzkragen

New Member
Joined
Oct 18, 2019
Messages
1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD] [/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Project[/TD]
[TD]Value[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]Title[/TD]
[TD]Hours[/TD]
[TD]Title[/TD]
[TD]Hours[/TD]
[TD]Title[/TD]
[TD]Hours[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Justin[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD]Justin[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD]18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Justin[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Can someone help? I know this should be fairly easy, but I am struggling with it. I am looking to sum up the values in column B if a matching value to Bob or Justin appears in F:K. This is just a parse of the information and I have been able to do this with a
=Sumifs(B:B,F:F,"Justin")+Sumifs(B:B,H:H,"Justin")+Sumifs(B:B,J:J,"Justin")

but is there an easier way?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
maybe PowerQuery aka Get&Transform

[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#5B9BD5]Project[/td][td=bgcolor:#5B9BD5]Value[/td][td=bgcolor:#5B9BD5]Title[/td][td=bgcolor:#5B9BD5]Hours[/td][td=bgcolor:#5B9BD5]Title2[/td][td=bgcolor:#5B9BD5]Hours3[/td][td=bgcolor:#5B9BD5]Title4[/td][td=bgcolor:#5B9BD5]Hours5[/td][td][/td][td=bgcolor:#70AD47]Value.1[/td][td=bgcolor:#70AD47]Sum[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7]
15​
[/td][td=bgcolor:#DDEBF7]Bob[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td][/td][td=bgcolor:#E2EFDA]Bob[/td][td=bgcolor:#E2EFDA]
44​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]
14​
[/td][td]Justin[/td][td][/td][td][/td][td][/td][td]Bob[/td][td][/td][td][/td][td]Justin[/td][td]
47​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7]
15​
[/td][td=bgcolor:#DDEBF7]Bob[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7]Justin[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]
18​
[/td][td]Justin[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]


Code:
[SIZE=1]// Table5
let
    Source = Excel.CurrentWorkbook(){[Name="Table5"]}[Content],
    UnpivotOSC = Table.Unpivot(Source, {"Title", "Hours", "Title2", "Hours3", "Title4", "Hours5"}, "Attribute", "Value.1"),
    Group = Table.Group(UnpivotOSC, {"Value.1"}, {{"Sum", each List.Sum([Value]), type number}})
in
    Group[/SIZE]
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,186
Members
452,615
Latest member
bogeys2birdies

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