= sumifs ?

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,125
Office Version
  1. 365
Platform
  1. Windows
Hi so this works below and I locked the other cells because I need to drag this down like 200 lines. The only thing as of now I cant get to change is the 2 to go to 3 then 4 and so on. Anyway of doing this so I don't have to go into each cell and do it.


=SUMIFS($I$2:$I$1000,$D$2:$D$1000,"2")

Example when I drag it down I need it to change like this.

=SUMIFS($I$2:$I$1000,$D$2:$D$1000,"3")

=SUMIFS($I$2:$I$1000,$D$2:$D$1000,"4")

and on
<strike>
</strike>
 
My friend. Surely it will look the values in Column D. But the question is what value to look at?
so it will match the cell value of J2 (i.e. 2) in column D

just type 2 in cell J2 put this formula in J3. (=J2+1) and drag it down to the desired range.
then enter the formula I provided in post #6 and drag it down too - to the desired range.
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
sorry just confusing at the moment and cant get it. The value to add up is in column I the numbers to go off of are from column D
 
Upvote 0
Hello Zone790 :biggrin:
Is this the answer that u want
[TABLE="width: 512"]
<colgroup><col width="64" span="8" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"] ID
[/TD]
[TD="class: xl66, width: 64"]PERIOD START DATE[/TD]
[TD="class: xl66, width: 64"]PERIOD END DATE[/TD]
[TD="class: xl66, width: 64"]CHECK DATE[/TD]
[TD="class: xl66, width: 64"]HOURLY AMOUNT[/TD]
[TD="class: xl66, width: 64"]HOURLY HOURS[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 2
[/TD]
[TD="class: xl68, width: 64"] 39
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 1800
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]1800[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 3
[/TD]
[TD="class: xl68, width: 64"] 26
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 2000
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]3800[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 4
[/TD]
[TD="class: xl68, width: 64"] 10
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 2600
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]6400[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 5
[/TD]
[TD="class: xl68, width: 64"] 30
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 1600
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 6
[/TD]
[TD="class: xl68, width: 64"] 29
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 1600
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]9600[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 7
[/TD]
[TD="class: xl68, width: 64"] 62
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 1800
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]11400[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 8
[/TD]
[TD="class: xl68, width: 64"] 4
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 4326.8
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]15726.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 9
[/TD]
[TD="class: xl68, width: 64"] 6
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]15726.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 10
[/TD]
[TD="class: xl68, width: 64"] 6
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]15726.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 11
[/TD]
[TD="class: xl68, width: 64"] 7
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]15726.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 12
[/TD]
[TD="class: xl68, width: 64"] 7
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]15726.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 13
[/TD]
[TD="class: xl68, width: 64"] 11
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]15726.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 14
[/TD]
[TD="class: xl68, width: 64"] 11
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]15726.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 15
[/TD]
[TD="class: xl68, width: 64"] 1
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 750
[/TD]
[TD="class: xl68, width: 64"] 20
[/TD]
[TD="align: right"]16476.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 16
[/TD]
[TD="class: xl68, width: 64"] 1
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 750
[/TD]
[TD="class: xl68, width: 64"] 20
[/TD]
[TD="align: right"]17226.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 17
[/TD]
[TD="class: xl68, width: 64"] 14
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]17226.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 18
[/TD]
[TD="class: xl68, width: 64"] 14
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]17226.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 19
[/TD]
[TD="class: xl68, width: 64"] 3
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]17226.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 20
[/TD]
[TD="class: xl68, width: 64"] 3
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]17226.8[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 21
[/TD]
[TD="class: xl68, width: 64"] 15
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 2265.2
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]19492[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 22
[/TD]
[TD="class: xl68, width: 64"] 9
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]19492[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 23
[/TD]
[TD="class: xl68, width: 64"] 9
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]19492[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 24
[/TD]
[TD="class: xl68, width: 64"] 5
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="class: xl66, width: 64"] [/TD]
[TD="align: right"]19492[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 25
[/TD]
[TD="class: xl68, width: 64"] 5
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 3210
[/TD]
[TD="class: xl68, width: 64"] 30
[/TD]
[TD="align: right"]22702[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 26
[/TD]
[TD="class: xl68, width: 64"] 5
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 1070
[/TD]
[TD="class: xl68, width: 64"] 10
[/TD]
[TD="align: right"]23772[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"] 27
[/TD]
[TD="class: xl68, width: 64"] 57
[/TD]
[TD="class: xl68, width: 64"] 9/17/2018
[/TD]
[TD="class: xl68, width: 64"] 9/23/2018
[/TD]
[TD="class: xl68, width: 64"] 9/25/2018
[/TD]
[TD="class: xl68, width: 64"] 2050.8
[/TD]
[TD="class: xl68, width: 64"] 40
[/TD]
[TD="align: right"]25822.8[/TD]
[/TR]
</tbody>[/TABLE]

In k2 i used this formula
Code:
=I2
in k3 i used this formula n dragged it down till k27
Code:
=I3+K2
 
Upvote 0
How about
=SUMIFS($I$2:$I$1000,$D$2:$D$1000,ROW(D2))
 
Upvote 0
First column below is lets say D look at the number 5 in D right sums up whatever is in I 30 + 10 returns 40 9 has 0 returns nothing

Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#888888][th] [/th][th]
D
[/th][th]
E
[/th][th]
F
[/th][th]
G
[/th][th]
H
[/th][th]
I
[/th][th]
J
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
22
[/td][td]
9​
[/td][td]
9/17/2018​
[/td][td]
9/23/2018​
[/td][td]
9/25/2018​
[/td][td][/td][td][/td][td][/td][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
23
[/td][td]
9​
[/td][td]
9/17/2018​
[/td][td]
9/23/2018​
[/td][td]
9/25/2018​
[/td][td][/td][td][/td][td][/td][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
24
[/td][td]
5​
[/td][td]
9/17/2018​
[/td][td]
9/23/2018​
[/td][td]
9/25/2018​
[/td][td][/td][td][/td][td][/td][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
25
[/td][td]
5​
[/td][td]
9/17/2018​
[/td][td]
9/23/2018​
[/td][td]
9/25/2018​
[/td][td]
3210​
[/td][td]
30​
[/td][td]
107​
[/td][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
26
[/td][td]
5​
[/td][td]
9/17/2018​
[/td][td]
9/23/2018​
[/td][td]
9/25/2018​
[/td][td]
1070​
[/td][td]
10​
[/td][td]
107​
[/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Sheet2[/td][/tr][/table]
 
Upvote 0
Fluff thats it works thanks so much. Thanks guys also for the help. Will use fluff's for now it works.
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,609
Members
452,660
Latest member
Zatman

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