J
jbobzien
I have been given the task of updating our hrly tracking of employees at
my job. We have lovely excel sheets that do this, however we have old
ones that convert the time from hrs and minutes to hours and two
decimal places. We put them into a new spreadsheet (why? I don't know!)
by hand. They want me to merge these two ideas. Easy right? well the old
ones were written by some guy that doesn't work here anymore,
and.......... they are all pwd protected! I have to use the format on
the new spreadsheet. Now his formula, while hard to extract, was
finally extracted and I'll show it to you now:
=ROUND(IF((OR(B15="",C15="")),0,IF((C15<B15),((C15-B15)*24)+24,(C15-B15)*24))+IF((OR(E15="",F15="")),0,IF((F15<E15),((F15-E15)*24)+24,(F15-E15)*24)),2)
Apparently it takes two cells that are in TIME format, subtracts them,
then adds them to two more cells and gives you a total, which is all
correct. However, in the new spread sheet, I have..... Time in, Time
out, and Lunch... so I need to get rid of the 2nd set of two cells, and
put in a simple subtract cell if there's time in it (for lunch).
Unfortunately the old guy knew a LOT more about excel than me, and I'm
getting a headache from looking at that formula. Can anyone help?
--John
my job. We have lovely excel sheets that do this, however we have old
ones that convert the time from hrs and minutes to hours and two
decimal places. We put them into a new spreadsheet (why? I don't know!)
by hand. They want me to merge these two ideas. Easy right? well the old
ones were written by some guy that doesn't work here anymore,
and.......... they are all pwd protected! I have to use the format on
the new spreadsheet. Now his formula, while hard to extract, was
finally extracted and I'll show it to you now:
=ROUND(IF((OR(B15="",C15="")),0,IF((C15<B15),((C15-B15)*24)+24,(C15-B15)*24))+IF((OR(E15="",F15="")),0,IF((F15<E15),((F15-E15)*24)+24,(F15-E15)*24)),2)
Apparently it takes two cells that are in TIME format, subtracts them,
then adds them to two more cells and gives you a total, which is all
correct. However, in the new spread sheet, I have..... Time in, Time
out, and Lunch... so I need to get rid of the 2nd set of two cells, and
put in a simple subtract cell if there's time in it (for lunch).
Unfortunately the old guy knew a LOT more about excel than me, and I'm
getting a headache from looking at that formula. Can anyone help?
--John