Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
El Bee
 
Posts: n/a
Default Displaying time - Error in formula (I think?)

I have a spread sheet for tracking employees time and for some days the
fields are displayed correct but in others (using the same format) the hours
are out of whack!
For example:
Cell d7 = 19:30 e7 = 05:30 (should be 10 hours)
Cell d6 = 10:00 e6 = 20:00 (should be 10 hours)
Cell d5 = 05:30 d5 = 15:30 (should be 10 hours)

When I add the totals together it shows 6:30 hours, I've tried several
different formulas from this website and none of them work on this particular
problem.
My spreadsheet uses 2 colums per employee per day (start & end) times. It
starts in column B and ends in column O (7 days for the week).

It seems that if the total number of hours for the above 3 employees exceeds
24 hours then the time gets messed up.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Displaying time - Error in formula (I think?)

Format the result cell as [h]:mm

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"El Bee" wrote in message
...
I have a spread sheet for tracking employees time and for some days the
fields are displayed correct but in others (using the same format) the

hours
are out of whack!
For example:
Cell d7 = 19:30 e7 = 05:30 (should be 10 hours)
Cell d6 = 10:00 e6 = 20:00 (should be 10 hours)
Cell d5 = 05:30 d5 = 15:30 (should be 10 hours)

When I add the totals together it shows 6:30 hours, I've tried several
different formulas from this website and none of them work on this

particular
problem.
My spreadsheet uses 2 colums per employee per day (start & end) times. It
starts in column B and ends in column O (7 days for the week).

It seems that if the total number of hours for the above 3 employees

exceeds
24 hours then the time gets messed up.

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default Displaying time - Error in formula (I think?)

Hi

With start time p.e. in D5 and end time in E5
=E5-D5+(E5<D5)

NB! Both time columns and the column with formula must be formatted in a
valid time format. When you want to sum formula results, format this cell as
custom "[h]:mm" or "[h]:mm:ss"


Arvi Laanemets



"El Bee" wrote in message
...
I have a spread sheet for tracking employees time and for some days the
fields are displayed correct but in others (using the same format) the

hours
are out of whack!
For example:
Cell d7 = 19:30 e7 = 05:30 (should be 10 hours)
Cell d6 = 10:00 e6 = 20:00 (should be 10 hours)
Cell d5 = 05:30 d5 = 15:30 (should be 10 hours)

When I add the totals together it shows 6:30 hours, I've tried several
different formulas from this website and none of them work on this

particular
problem.
My spreadsheet uses 2 colums per employee per day (start & end) times. It
starts in column B and ends in column O (7 days for the week).

It seems that if the total number of hours for the above 3 employees

exceeds
24 hours then the time gets messed up.

Any ideas?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
El Bee
 
Posts: n/a
Default Displaying time - Error in formula (I think?)

Here's what I have in the two columns with the total at the bottom.

col D col E
------ ------
Start End
5:30 15:30
10:00 20:00
19:00 5:30

TOTAL 6:30

Here's what I get when I change the format to [h]:mm

Start End
5:30 15:30
10:00 20:00
19:00 5:30

TOTAL 606:30

Here's the formula

=MOD(E5-D5,1)+ MOD(E6-D6,1) + MOD(E7-D7,1)+ MOD(E8-D8,1)+
MOD(E9-D9,1)+ MOD(E10-D10,1)+ MOD(E11-D11,1)

"Arvi Laanemets" wrote:

Hi

With start time p.e. in D5 and end time in E5
=E5-D5+(E5<D5)

NB! Both time columns and the column with formula must be formatted in a
valid time format. When you want to sum formula results, format this cell as
custom "[h]:mm" or "[h]:mm:ss"


Arvi Laanemets



"El Bee" wrote in message
...
I have a spread sheet for tracking employees time and for some days the
fields are displayed correct but in others (using the same format) the

hours
are out of whack!
For example:
Cell d7 = 19:30 e7 = 05:30 (should be 10 hours)
Cell d6 = 10:00 e6 = 20:00 (should be 10 hours)
Cell d5 = 05:30 d5 = 15:30 (should be 10 hours)

When I add the totals together it shows 6:30 hours, I've tried several
different formulas from this website and none of them work on this

particular
problem.
My spreadsheet uses 2 colums per employee per day (start & end) times. It
starts in column B and ends in column O (7 days for the week).

It seems that if the total number of hours for the above 3 employees

exceeds
24 hours then the time gets messed up.

Any ideas?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
El Bee
 
Posts: n/a
Default Displaying time - Error in formula (I think?)

Arvi,

Disregard the previous email. I found the problem. I had a different
format in one of the cells and the formula had an error; as well.

Thanks for pointing me in the right direction.

"Arvi Laanemets" wrote:

Hi

With start time p.e. in D5 and end time in E5
=E5-D5+(E5<D5)

NB! Both time columns and the column with formula must be formatted in a
valid time format. When you want to sum formula results, format this cell as
custom "[h]:mm" or "[h]:mm:ss"


Arvi Laanemets



"El Bee" wrote in message
...
I have a spread sheet for tracking employees time and for some days the
fields are displayed correct but in others (using the same format) the

hours
are out of whack!
For example:
Cell d7 = 19:30 e7 = 05:30 (should be 10 hours)
Cell d6 = 10:00 e6 = 20:00 (should be 10 hours)
Cell d5 = 05:30 d5 = 15:30 (should be 10 hours)

When I add the totals together it shows 6:30 hours, I've tried several
different formulas from this website and none of them work on this

particular
problem.
My spreadsheet uses 2 colums per employee per day (start & end) times. It
starts in column B and ends in column O (7 days for the week).

It seems that if the total number of hours for the above 3 employees

exceeds
24 hours then the time gets messed up.

Any ideas?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
$ vs time formula Webitect Excel Worksheet Functions 2 March 1st 06 08:31 PM
Help with time formula so the time will not change. Joker Excel Discussion (Misc queries) 1 February 17th 06 09:04 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula is entering a default time when it comes across an empty cell.. Howie Excel Worksheet Functions 10 November 16th 05 11:34 AM
Formula to deduct unpaid breaks in time sheet Rick Excel Discussion (Misc queries) 3 August 26th 05 11:53 PM


All times are GMT +1. The time now is 01:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"