mthrasher16
New Member
- Joined
- May 23, 2024
- Messages
- 3
- Office Version
- 365
Hi All,
I'm trying to make a pretty simple spreadsheet that calculates the time an employee works. All of my formulas are working fine except the most important one - this formula needs to be able to calculate the number of hours worked, regardless of weather or not time is put into the Lunch Start or Lunch End cells. (I have to do it this way to be able to tell how much time lapses between an employee punching in and their official start time. Otherwise I'd just do a much simpler formula where I keyed the length of their break in)
I think I'm close but keep getting a, 'There's a problem with this formula' prompt or a 'Too many arguments prompt.' Am I just stuck with a parenthesis is the wrong place or is my formula fundamentally flawed?
C15 = Time In
D15 = Lunch Start
E15 = Lunch End
F=15 = Time Out
This is my formula: =IFERROR(IF(COUNT(C16:F16=4),IF(F16<C16,1,(F16-E16)+(D16-C16)),IF(AND(LEN(C16)<>0),LEN(F16)<>0),IF(F16<C16,1,0+(F16-C16,0))*24,0
Thanks for your help!
I'm trying to make a pretty simple spreadsheet that calculates the time an employee works. All of my formulas are working fine except the most important one - this formula needs to be able to calculate the number of hours worked, regardless of weather or not time is put into the Lunch Start or Lunch End cells. (I have to do it this way to be able to tell how much time lapses between an employee punching in and their official start time. Otherwise I'd just do a much simpler formula where I keyed the length of their break in)
I think I'm close but keep getting a, 'There's a problem with this formula' prompt or a 'Too many arguments prompt.' Am I just stuck with a parenthesis is the wrong place or is my formula fundamentally flawed?
C15 = Time In
D15 = Lunch Start
E15 = Lunch End
F=15 = Time Out
This is my formula: =IFERROR(IF(COUNT(C16:F16=4),IF(F16<C16,1,(F16-E16)+(D16-C16)),IF(AND(LEN(C16)<>0),LEN(F16)<>0),IF(F16<C16,1,0+(F16-C16,0))*24,0
Thanks for your help!