count overtime hours in a calendar

ttowncorp

Board Regular
Joined
Feb 2, 2015
Messages
187
Office Version
  1. 365
Platform
  1. Windows
Im trying to figure out how to count overtime hours in a calendar year with a basic countif forumal if possible. I'm tracking hours by initals of employees. for example John Smith (JS) worked 3 hours OT on Thursday. So on Thursday i type in LS=3 for my reference. OT ranges from 1-8 in a day. and i want to count all the hours that person did in that month. for example
Monday 1stTuesday 2ndWednesday3rdThursday 4thFriday 5thSaturday 6thSunday 7th
JS=3JS=7JS=2JS=1JS=3.5JS=.5JS=4
GB=1GB=2GB=4GB=2GB=2GB=3GB=3
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Please try this:
Book1
ABCDEFGHI
1MondayTuesdayWednesdayThursdayFridaySaturdaySunday
2JS=3JS=7JS=2JS=1JS=3.5JS=.5JS=421
3GB=1GB=2GB=4GB=2GB=2GB=3GB=317
Sheet2
Cell Formulas
RangeFormula
I2:I3I2=SUM(--TEXTAFTER(A2:G2,"="))
 
Upvote 0
Please try this:
Book1
ABCDEFGHI
1MondayTuesdayWednesdayThursdayFridaySaturdaySunday
2JS=3JS=7JS=2JS=1JS=3.5JS=.5JS=421
3GB=1GB=2GB=4GB=2GB=2GB=3GB=317
Sheet2
Cell Formulas
RangeFormula
I2:I3I2=SUM(--TEXTAFTER(A2:G2,"="))
Thanks. how do i get this to work if my data is on a separate sheet? I have sheets from January thru December and my totals will be on a sheet called total.
 
Upvote 0
I did you one better, These formulas will sum the values based on the Person Initials also
Book1
IJ
1InitialsSum
2JS21
3GB17
Total
Cell Formulas
RangeFormula
J2:J3J2=SUM(TOROW(LEFT(Sheet3!$A$2:$G$3,2)=I2)*(--TEXTAFTER(TOROW(Sheet3!$A$2:$G$3),"=")))


Book1
ABCDEFG
1MondayTuesdayWednesdayThursdayFridaySaturdaySunday
2JS=3JS=7JS=2JS=1JS=3.5JS=.5JS=4
3GB=1GB=2GB=4GB=2GB=2GB=3GB=3
Sheet3
 
Upvote 0
I did you one better, These formulas will sum the values based on the Person Initials also
Book1
IJ
1InitialsSum
2JS21
3GB17
Total
Cell Formulas
RangeFormula
J2:J3J2=SUM(TOROW(LEFT(Sheet3!$A$2:$G$3,2)=I2)*(--TEXTAFTER(TOROW(Sheet3!$A$2:$G$3),"=")))


Book1
ABCDEFG
1MondayTuesdayWednesdayThursdayFridaySaturdaySunday
2JS=3JS=7JS=2JS=1JS=3.5JS=.5JS=4
3GB=1GB=2GB=4GB=2GB=2GB=3GB=3
Sheet3
thank you. this works perfectly.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
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