I have a spreadsheet that is configured to show adherence or point for late login or early log out.
The forumla also subtracts an hour and a half for Lunch and breaks (-5400 seconds).
See the formula below:
=IF(ISERROR(SUM((W124*86400)-(V124*86400)-5400)/86400),"",(SUM((W124*86400)-(V124*86400)-5400)/86400))
I'm using the =IF(ISERROR function so that, when the login time (V124) and the log out time (W124) are emtpy, the formula can reside in X124 but appear empty.
X is the "time worked" 9 hrs - 1.5 hrs (lunch and break) so it should show 07:30:00 +
However, it does not work... it shows all ################ no matter what I try.
I realize I am subtracting 5400 seconds from nothing so its a negative number without any data in V and W. I'm handing this off to a coworker while I'm on vacation and rather than having him have to copy and paste the forumla in the X cell daily, I'd sure like to make it automatic for him. He's not yet real Excel savvy (and I know enough to be dangerous but they think ME... a guru... pfft if they only knew)
and whatever I can do to make this as easy peasy as possible, the better.
I am confident that using some sort of VBA can cover this but I'm not one bit savvy on VBA so I'm hoping there is a function or formula of SOME SORT that I might consider.
I've been using this formula for about a year now but never had anyone else in my workbook... I'm afraid of this thing blowing up.
I doubt it matters but these cells (V and W) are conditionally formatted to show green if within the threshold and red when not.
Additionally I'm using T and U to show adherence points, not that this should matter for formatting X to show blank when no time values are entered into V and W.
Have I lost you yet? If not, any advice or direction?
Thanks group.. you are always so helpful and I've learned so much... Like the =IF(ERROR thing... what a GODSEND![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thank you!
Laurie
OH and one more thing... in Excel, when chosing sell formatting, I have no clue what or where to find answers... what those different formats are under Custom, the ones like:
#,##0
$#,##0);[Red]($#,##0)
# ??/??
##0.0E+o
or 0.00E+00 and those sort of things...
or
_($* #,##0_);_($*(#,##0);_$*"-"_;_(@_)
.... Just to mention a few..
what in the world is all of this? I know its not timem related and tht's what I'm working with right now but I've always been curious.
Heck there's just an @ symbol in there <shrug> WHY?
Thanks again....
LadyCK3
aka: Laurie![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
The forumla also subtracts an hour and a half for Lunch and breaks (-5400 seconds).
See the formula below:
=IF(ISERROR(SUM((W124*86400)-(V124*86400)-5400)/86400),"",(SUM((W124*86400)-(V124*86400)-5400)/86400))
I'm using the =IF(ISERROR function so that, when the login time (V124) and the log out time (W124) are emtpy, the formula can reside in X124 but appear empty.
X is the "time worked" 9 hrs - 1.5 hrs (lunch and break) so it should show 07:30:00 +
However, it does not work... it shows all ################ no matter what I try.
I realize I am subtracting 5400 seconds from nothing so its a negative number without any data in V and W. I'm handing this off to a coworker while I'm on vacation and rather than having him have to copy and paste the forumla in the X cell daily, I'd sure like to make it automatic for him. He's not yet real Excel savvy (and I know enough to be dangerous but they think ME... a guru... pfft if they only knew)
I am confident that using some sort of VBA can cover this but I'm not one bit savvy on VBA so I'm hoping there is a function or formula of SOME SORT that I might consider.
I've been using this formula for about a year now but never had anyone else in my workbook... I'm afraid of this thing blowing up.
I doubt it matters but these cells (V and W) are conditionally formatted to show green if within the threshold and red when not.
Additionally I'm using T and U to show adherence points, not that this should matter for formatting X to show blank when no time values are entered into V and W.
Have I lost you yet? If not, any advice or direction?
Thanks group.. you are always so helpful and I've learned so much... Like the =IF(ERROR thing... what a GODSEND
Thank you!
Laurie
OH and one more thing... in Excel, when chosing sell formatting, I have no clue what or where to find answers... what those different formats are under Custom, the ones like:
#,##0
$#,##0);[Red]($#,##0)
# ??/??
##0.0E+o
or 0.00E+00 and those sort of things...
or
_($* #,##0_);_($*(#,##0);_$*"-"_;_(@_)
.... Just to mention a few..
what in the world is all of this? I know its not timem related and tht's what I'm working with right now but I've always been curious.
Heck there's just an @ symbol in there <shrug> WHY?
Thanks again....
LadyCK3
aka: Laurie