Calculate negative hours (time)

J

Jolanta

Hi all

I have one employee NOT working 8 hours sometimes.

Monday 08:00 - 16:00 = 8 hours
Tuesday 08:00 - 15:00 = 7 hours
Wednesday 08:00 - 16:30 = 8,5 hours

a1 b1 c1 d1
08:00 16:00 b1-a1 = 8 +8
08:00 15:00 b1-a1 = 7 -1
08:00 16:30 b1-a1 = 8,5 +0.5

I cant figure out the d1 column formula. Any help appreciated. Sorry
if this has been asked before

Thanks in advance!
Jolanta
 
N

Niek Otten

Hi Jolanta,

Use the 1904 date system. Do read HELP first so you know what the effects are.

Tools>Options>Calculation tab, check "1904 date system"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hi all
|
| I have one employee NOT working 8 hours sometimes.
|
| Monday 08:00 - 16:00 = 8 hours
| Tuesday 08:00 - 15:00 = 7 hours
| Wednesday 08:00 - 16:30 = 8,5 hours
|
| a1 b1 c1 d1
| 08:00 16:00 b1-a1 = 8 +8
| 08:00 15:00 b1-a1 = 7 -1
| 08:00 16:30 b1-a1 = 8,5 +0.5
|
| I cant figure out the d1 column formula. Any help appreciated. Sorry
| if this has been asked before
|
| Thanks in advance!
| Jolanta
|
 
M

Mike H

Hi,

Apart from the start and finis times I wouldn't work with the cells
formatted as time' i'd format them as numbers and this gets over the negative
time problem.
I.e. columns C, D & E formatted as number

A B C D E
Start Finish Hrs worked Required hrs +/1
08:00 16:00 =(B1-A1)*24 8 =D1-C1


Mike
 
J

Jolanta

Hello

I only have excel 2000 - (SORRY, should have told you) so I don't have
the 1904 date system.

If I formate the cells as numbers excel shows the numbers instead of
the time values. So how can i keep
the right visualization?

Kind regards Jola
 
D

David Biddulph

Your example had 8.5 (not 8:30) in column C, and 0.5 (not 0:30) in column D,
so I don't understand your visualization problem?
 
N

Niek Otten

<so I don't have the 1904 date system.>

That system is present many versions of Excel, including yours

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


Hello

I only have excel 2000 - (SORRY, should have told you) so I don't have
the 1904 date system.

If I formate the cells as numbers excel shows the numbers instead of
the time values. So how can i keep
the right visualization?

Kind regards Jola
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top