= sumifs ?

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,079
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Sure u can put the formula in AK2. Doesn’t matter
 
Upvote 0
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
ID
PERIOD START DATEPERIOD END DATECHECK DATEHOURLY AMOUNTHOURLY HOURS
2
39
9/17/2018
9/23/2018
9/25/2018
1800
40
1800
3
26
9/17/2018
9/23/2018
9/25/2018
2000
40
3800
4
10
9/17/2018
9/23/2018
9/25/2018
2600
40
6400
5
30
9/17/2018
9/23/2018
9/25/2018
1600
40
8000
6
29
9/17/2018
9/23/2018
9/25/2018
1600
40
9600
7
62
9/17/2018
9/23/2018
9/25/2018
1800
40
11400
8
4
9/17/2018
9/23/2018
9/25/2018
4326.8
40
15726.8
9
6
9/17/2018
9/23/2018
9/25/2018
15726.8
10
6
9/17/2018
9/23/2018
9/25/2018
15726.8
11
7
9/17/2018
9/23/2018
9/25/2018
15726.8
12
7
9/17/2018
9/23/2018
9/25/2018
15726.8
13
11
9/17/2018
9/23/2018
9/25/2018
15726.8
14
11
9/17/2018
9/23/2018
9/25/2018
15726.8
15
1
9/17/2018
9/23/2018
9/25/2018
750
20
16476.8
16
1
9/17/2018
9/23/2018
9/25/2018
750
20
17226.8
17
14
9/17/2018
9/23/2018
9/25/2018
17226.8
18
14
9/17/2018
9/23/2018
9/25/2018
17226.8
19
3
9/17/2018
9/23/2018
9/25/2018
17226.8
20
3
9/17/2018
9/23/2018
9/25/2018
17226.8
21
15
9/17/2018
9/23/2018
9/25/2018
2265.2
40
19492
22
9
9/17/2018
9/23/2018
9/25/2018
19492
23
9
9/17/2018
9/23/2018
9/25/2018
19492
24
5
9/17/2018
9/23/2018
9/25/2018
19492
25
5
9/17/2018
9/23/2018
9/25/2018
3210
30
22702
26
5
9/17/2018
9/23/2018
9/25/2018
1070
10
23772
27
57
9/17/2018
9/23/2018
9/25/2018
2050.8
40
25822.8

<colgroup><col width="64" span="8" style="width:48pt"> </colgroup><tbody>
</tbody>

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
D
E
F
G
H
I
J
22
9​
9/17/2018​
9/23/2018​
9/25/2018​
23
9​
9/17/2018​
9/23/2018​
9/25/2018​
24
5​
9/17/2018​
9/23/2018​
9/25/2018​
25
5​
9/17/2018​
9/23/2018​
9/25/2018​
3210​
30​
107​
26
5​
9/17/2018​
9/23/2018​
9/25/2018​
1070​
10​
107​
Sheet: Sheet2
 
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,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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