SUMIF Dynamic Range

drunkendentist

New Member
Joined
Jan 26, 2019
Messages
1
Hello there,

I'm attempting to use SUMIFs with dynamic rows or columns, here is a sample dataset


<tbody>
[TD="class: xl63"][/TD]
[TD="class: xl63, width: 51"]Score 1[/TD]
[TD="class: xl63, width: 51"]Score 2[/TD]
[TD="class: xl63, width: 51"]Score 3[/TD]
[TD="class: xl63, width: 51"]Score 4[/TD]
[TD="class: xl63, width: 51"]Score 5[/TD]

[TD="class: xl63"]Student 1[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]6[/TD]

[TD="class: xl63"]Student 2[/TD]
[TD="class: xl63, align: right"]6[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]0[/TD]
[TD="class: xl63, align: right"]3[/TD]

[TD="class: xl63"]Student 3[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]5[/TD]

[TD="class: xl63"]Student 4[/TD]
[TD="class: xl63, align: right"]7[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]5[/TD]

[TD="class: xl63"]Student 5[/TD]
[TD="class: xl63, align: right"]6[/TD]
[TD="class: xl63, align: right"]0[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]3[/TD]

[TD="class: xl63"]Student 6[/TD]
[TD="class: xl63, align: right"]6[/TD]
[TD="class: xl63, align: right"]0[/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]6[/TD]

[TD="class: xl63"]Student 7[/TD]
[TD="class: xl63, align: right"]7[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]2[/TD]

[TD="class: xl63"]Student 8[/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]0[/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]5[/TD]

[TD="class: xl63"]Student 9[/TD]
[TD="class: xl63, align: right"]1[/TD]
[TD="class: xl63, align: right"]4[/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]3[/TD]

[TD="class: xl63"]Student 10[/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]0[/TD]
[TD="class: xl63, align: right"]3[/TD]
[TD="class: xl63, align: right"]5[/TD]
[TD="class: xl63, align: right"]5[/TD]

</tbody>

I want to...

=SUMIF(Row of student A4,$C1001:$GT1001,">= "))

In essence, the student names are in cells A2, A3, A4 etc (in a jumbled up order) and I would like to do some form of lookup or index match, that looks up the student name and then dynamically finds the row to so the sum of.

Hope that makes, many thanks for your time.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi & welcome to MrExcel.
How about


Excel 2013/2016
ABCDEFGHI
1Score 1Score 2Score 3Score 4Score 5
2Student 182536Student 1018
3Student 264403Student 317
4Student 342335
5Student 472235
6Student 560223
7Student 660536
8Student 772432
9Student 852055
10Student 914553
11Student 1050355
Sheet1
Cell Formulas
RangeFormula
I2=SUM(INDEX($B$2:$F$11,MATCH(H2,$A$2:$A$11,0),0))
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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