Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default Excel Formula w/ Time format

I am trying to create a time sheet with in and out columns. The in / out
columns are formatted as time. The "total" column needs to be the total
number of hours - I am unable to get the arithmetic to work. Thankyou.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Excel Formula w/ Time format

If In = 8:00 AM and Out = 5:00 PM, then (5:00 PM - 8:00 AM) * 24 will yield 9
hours.

The reason being is that Excel stores time as fractions of a day. The
calculation above is really (17/24 - 8/24) * 24 = 9/24 * 24/1 = 9 hours.

Make sure the cell in which you are performing the calculation is formatted
as numbers, not time.
--
Brevity is the soul of wit.


"tanya" wrote:

I am trying to create a time sheet with in and out columns. The in / out
columns are formatted as time. The "total" column needs to be the total
number of hours - I am unable to get the arithmetic to work. Thankyou.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel Formula w/ Time format

If the first 'IN' is in cell A1 and the first 'OUT' is in cell B1, the second
'IN' is in cell C1 and the second 'OUT' is in cell D1 where the total hours
will be in cell E1, try the following.

IN CELL E1
=(B1-A1)+E1-D1

make sure your 'IN' and 'OUT' cells are formatted for time.
enter your time for AM as #:## and for PM as #:## pm (don't forget the space
between the last number and the pm

"tanya" wrote:

I am trying to create a time sheet with in and out columns. The in / out
columns are formatted as time. The "total" column needs to be the total
number of hours - I am unable to get the arithmetic to work. Thankyou.

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel data in text, wont update to time format raigo Excel Discussion (Misc queries) 5 August 4th 06 04:00 PM
Format number to Time in Excel? saffiyu Excel Worksheet Functions 1 August 2nd 06 04:35 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Insert spinning button with time format in Excel 2000? Pat Hughes Excel Discussion (Misc queries) 5 October 27th 05 12:55 AM


All times are GMT +1. The time now is 06:11 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"