SumIf, Index, Match Need help with formula

IESEnergy

New Member
Joined
Aug 28, 2017
Messages
14
I would like to calculate the total hours for M, T, W, Th, F, Sa, Su

Can you please help with the formula? I was able to get the total hours for each employee but haven't been able to figure out how to break it down per day.

I have the following table:

Employee NameEmployee Number8/13/20188/14/20188/15/20188/16/20188/17/20188/18/20188/19/2018Total Hours
MTWThFSaSu
Name135EB600006
Name235EB600092

<tbody>
</tbody>



And the following data on sheet1:

Employee Name Employee # Date InTime OutTime Hours
Name135EB6000068/13/20188:00 AM12:00 PM4
Name135EB6000068/13/201812:30 PM4:03 PM3.55
Name135EB6000068/14/20186:30 AM4:08 PM9.633
Name135EB6000068/15/201811:40 AM4:56 PM5.267
Name135EB6000068/16/20188:00 AM4:00 PM8
Name135EB6000068/17/20187:35 AM4:00 PM8.417
Name135EB6000068/18/201811:50 AM2:10 PM2.333
Name235EB6000928/13/20188:01 AM12:01 PM4
Name235EB6000928/13/201812:33 PM4:05 PM3.533
Name235EB6000928/14/20187:55 AM12:01 PM4.1
Name235EB6000928/14/201812:36 PM4:14 PM3.633
Name235EB6000928/15/20188:04 AM12:00 PM3.933
Name235EB6000928/15/201812:37 PM4:01 PM3.4
Name235EB6000928/16/20188:00 AM4:00 PM8
Name235EB6000928/17/20188:30 AM4:00 PM7.5

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
A
B
C
D
E
F
G
H
I
J
K
1
Employee Name​
Employee Number​
8/13/2018​
8/14/2018​
8/15/2018​
8/16/2018​
8/17/2018​
8/18/2018​
8/19/2018​
Total Hours​
2
M​
T​
W​
Th​
F​
Sa​
Su​
3
Name135EB600006
7.55​
9.633​
5.267​
8​
8.417​
2.333​
0​
41.2​
4
Name235EB600092
7.533​
7.733​
7.333​
8​
7.5​
0​
0​
38.099​
5
6
7
8
9
10
Employee Name​
Employee #​
Date​
InTime​
OutTime​
Hours​
11
Name135EB600006
8/13/2018​
8:00 AM​
12:00 PM​
4​
12
Name135EB600006
8/13/2018​
12:30 PM​
4:03 PM​
3.55​
13
Name135EB600006
8/14/2018​
6:30 AM​
4:08 PM​
9.633​
14
Name135EB600006
8/15/2018​
11:40 AM​
4:56 PM​
5.267​
15
Name135EB600006
8/16/2018​
8:00 AM​
4:00 PM​
8​
16
Name135EB600006
8/17/2018​
7:35 AM​
4:00 PM​
8.417​
17
Name135EB600006
8/18/2018​
11:50 AM​
2:10 PM​
2.333​
18
Name235EB600092
8/13/2018​
8:01 AM​
12:01 PM​
4​
19
Name235EB600092
8/13/2018​
12:33 PM​
4:05 PM​
3.533​
20
Name235EB600092
8/14/2018​
7:55 AM​
12:01 PM​
4.1​
21
Name235EB600092
8/14/2018​
12:36 PM​
4:14 PM​
3.633​
22
Name235EB600092
8/15/2018​
8:04 AM​
12:00 PM​
3.933​
23
Name235EB600092
8/15/2018​
12:37 PM​
4:01 PM​
3.4​
24
Name235EB600092
8/16/2018​
8:00 AM​
4:00 PM​
8​
25
Name235EB600092
8/17/2018​
8:30 AM​
4:00 PM​
7.5​

<tbody>
</tbody>


C3=
SUMIFS($F$11:$F$25,$B$11:$B$25,$B3,$C$11:$C$25,C$1) copy across and down

j3=SUM(C3:I3) copy down
 
Last edited:
Upvote 0
Thank you very much. Is there a way to do it by a look up? Some of the employees did not work Monday. Some did not take a lunch, etc.
 
Upvote 0
Hi

Sheet2

C3=SUMIFS(Sheet1!$F$2:$F$93,Sheet1!$B$2:$B$93,Sheet2!$B3,Sheet1!$A$2:$A$93,Sheet2!$A3,Sheet1!$C$2:$C$93,Sheet2!C$1) copy across and down
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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