Thread: Counting hours
View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
vanilla_bean_orange via OfficeKB.com vanilla_bean_orange via OfficeKB.com is offline
external usenet poster
 
Posts: 6
Default Counting hours

Hi there, thanks for the reply

Changing to the 1904 date systems does solve the format problem. I think I
can get around the date change problem. Theres not to many dates in there
yet thankfully.

Would you know anything about the formula? It doesnt seem to be returning
the right value.

E.g:

B29 - 01/03/2006 10:00
D29 - 01/03/2006 17:00

E3 - 10:00
F3 - 16:00

The value that should be returned is 6 hours as anytime before 10am shouldnt
be counted as with anytime after 16:00.

Instead I get -1day 12hours 0minutes!

Dave Peterson wrote:
Is the column wide enough? Try widening it way past what you think is
necessary.

Is the value negative?

Excel doesn't like negative dates/times unless you turn on:
tools|Options|calculation tab|1904 date system

(Then watch your dates--they could be off by 4 years and 1 day.)

Hey

[quoted text clipped - 22 lines]

Theresa



--
Message posted via http://www.officekb.com