Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mark
 
Posts: n/a
Default I need help with a formula calculating time

I have a simple spreadsheet calculating the hours worked by a person, In the
columns i have start time, end time and hours worked. The columns are
formatted into hh:mm. The hours worked are calculated by subtracting end
time from start time, based on 24hour clock. This works fine if the hours are
worked on the same day, but if the person starts at 18:00 and finishes at
02:00 the subtraction doesnt work.

If however i change the formatting of the cells to dd/mm/yyyy hh:mm this
will work as the date helps. But i feel this would be too much info to enter
for each person if i have over 100 people on the spreadsheet.

Is there an easier way around this either by changing the original formula
or maybe by entering the date once on a sperate cell and only entering the
times in the rows for each person.

Thanx
Mark
  #2   Report Post  
Niek Otten
 
Posts: n/a
Default

Hi Marx,

=IF(B1A1,B1-A1,B1+1-A1)

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Mark" wrote in message
...
I have a simple spreadsheet calculating the hours worked by a person, In
the
columns i have start time, end time and hours worked. The columns are
formatted into hh:mm. The hours worked are calculated by subtracting end
time from start time, based on 24hour clock. This works fine if the hours
are
worked on the same day, but if the person starts at 18:00 and finishes at
02:00 the subtraction doesnt work.

If however i change the formatting of the cells to dd/mm/yyyy hh:mm this
will work as the date helps. But i feel this would be too much info to
enter
for each person if i have over 100 people on the spreadsheet.

Is there an easier way around this either by changing the original formula
or maybe by entering the date once on a sperate cell and only entering the
times in the rows for each person.

Thanx
Mark



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
Calculating negative time. Brian Excel Discussion (Misc queries) 4 April 7th 05 08:37 PM
Am trying to make a time sheet and having problems with a formula. godnight Excel Worksheet Functions 2 February 14th 05 02:21 PM
Formula for time DMachado Excel Discussion (Misc queries) 7 January 1st 05 10:45 PM
Formula for time? shaggy78 Excel Discussion (Misc queries) 11 December 31st 04 09:13 PM
What is the formula for getting time difference e.g. ("4 hrs 15 m. Sandeep Manjrekar Charts and Charting in Excel 3 December 4th 04 06:18 AM


All times are GMT +1. The time now is 03:07 PM.

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"