Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Watson
 
Posts: n/a
Default Formula is driving me crazy?????


I want a formula that will calculate time, this is my problem: Sheet 2,
A1=13:00, A2=12:00, A3=14:00. (these are the results from a time sheet
I created on Sheet 1), I need A4 to be the total of A1,2 & 3 Cells eg:
(39:00), Sounds easy but it just won't work, ive tried every format
there is and just about every formula. I know its using a 24 hour
timing but if A1 to A3 is the result of a calculation from Sheet 1 the
formula I put in A4 will change. Can anyone please help, Ive tried
about every site I know on the net and I can't find the answer.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Formula is driving me crazy?????

Format A4 as Custom, Type: [h]:mm
(include the 2 square brackets around the "h")
This allows roll-over 24 hours, and A4 will then show: 39:00
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Chris Watson"
wrote in message
news:Chris.Watson.232ctn_1139658902.0502@excelforu m-nospam.com...

I want a formula that will calculate time, this is my problem: Sheet 2,
A1=13:00, A2=12:00, A3=14:00. (these are the results from a time sheet
I created on Sheet 1), I need A4 to be the total of A1,2 & 3 Cells eg:
(39:00), Sounds easy but it just won't work, ive tried every format
there is and just about every formula. I know its using a 24 hour
timing but if A1 to A3 is the result of a calculation from Sheet 1 the
formula I put in A4 will change. Can anyone please help, Ive tried
about every site I know on the net and I can't find the answer.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:

http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Formula is driving me crazy?????

Just format Custom as [hh]:mm

=SUM(A1:A3)

--
Kind regards,

Niek Otten

"Chris Watson"
wrote in message
news:Chris.Watson.232ctn_1139658902.0502@excelforu m-nospam.com...

I want a formula that will calculate time, this is my problem: Sheet 2,
A1=13:00, A2=12:00, A3=14:00. (these are the results from a time sheet
I created on Sheet 1), I need A4 to be the total of A1,2 & 3 Cells eg:
(39:00), Sounds easy but it just won't work, ive tried every format
there is and just about every formula. I know its using a 24 hour
timing but if A1 to A3 is the result of a calculation from Sheet 1 the
formula I put in A4 will change. Can anyone please help, Ive tried
about every site I know on the net and I can't find the answer.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:
http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Watson
 
Posts: n/a
Default Formula is driving me crazy?????


Try it for your self, Open a blank sheet, Format all cells as [hh]:mm,
in A1 put 06:00, in A2 put 05:00, in A3 put 07:00, in A4 put 08:00, now
B1 put in the formula =A1+A2 & in B2 put in formula =A3+A4. now put in
B3 =B1+B2. It just won't work which ever way you format the cells, I
have worked on this problem for 3 days now trying every possible
combination, I would give my right arm for the solution. I know this is
a 24 hour time calculation but if the cells you are adding together are
results of calculations from other cells the formula won't work. Try it
for your self. PLEASE PLEASE HELP!!!


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Formula is driving me crazy?????

Of course we tried, we always do.
I retried your exact example from your last post and got 26:00, which is
correct.
You still didn't tell us what you get!

--
Kind regards,

Niek Otten


"Chris Watson"
wrote in message
news:Chris.Watson.232ily_1139666403.2172@excelforu m-nospam.com...

Try it for your self, Open a blank sheet, Format all cells as [hh]:mm,
in A1 put 06:00, in A2 put 05:00, in A3 put 07:00, in A4 put 08:00, now
B1 put in the formula =A1+A2 & in B2 put in formula =A3+A4. now put in
B3 =B1+B2. It just won't work which ever way you format the cells, I
have worked on this problem for 3 days now trying every possible
combination, I would give my right arm for the solution. I know this is
a 24 hour time calculation but if the cells you are adding together are
results of calculations from other cells the formula won't work. Try it
for your self. PLEASE PLEASE HELP!!!


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:
http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Cutter
 
Posts: n/a
Default Formula is driving me crazy?????


I, too, followed your example, step-by-step and got a result of 26:00

The advice you've been given is correct

You must be doing something wrong


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=511313

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default Formula is driving me crazy?????


hi

again you are telling your result!
what is your input??

then only ppl will diagonise the disease???!!!

-via135




Cutter Wrote:
I, too, followed your example, step-by-step and got a result of 26:00

The advice you've been given is correct

You must be doing something wrong



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=511313

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Watson
 
Posts: n/a
Default Formula is driving me crazy?????


OK this is the situation, I am designing a HGV Drivers timesheet which
includes deliveries and POA (Period of Availability) calculator. I have
10 sheets, sheet 1 is drivers details, Sheets 2 to 8 are days of the
week, sheet 9 is a weekly summary. as a test Sunday (Sheet 2) I started
work at 18:00 and finished at 07:00 giving 13:00 shift. Monday (sheet 3)
I started and finished the same as Sunday, I have transfered both total
times to sheet 9, 13:00 for sunday & 13:00 for monday. I have a
separate block of cells that calculate the weeks results so there is a
duty time cell with the total, adding both sunday & monday times
together gives me a total of 1130:00, not 26:00 that I want, I have
tried every format there is and can't get it to work. If anybody wants
me to email a copy of the time sheets to them I will with pleasure, I
have highlighted in orange the problem. There are no macros in my time
sheet.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Formula is driving me crazy?????

Please mail the workbook. It is just now that it occurs to me you include
dates.


--
Kind regards,

Niek Otten


"Chris Watson"
wrote in message
news:Chris.Watson.232rvb_1139678401.4576@excelforu m-nospam.com...

OK this is the situation, I am designing a HGV Drivers timesheet which
includes deliveries and POA (Period of Availability) calculator. I have
10 sheets, sheet 1 is drivers details, Sheets 2 to 8 are days of the
week, sheet 9 is a weekly summary. as a test Sunday (Sheet 2) I started
work at 18:00 and finished at 07:00 giving 13:00 shift. Monday (sheet 3)
I started and finished the same as Sunday, I have transfered both total
times to sheet 9, 13:00 for sunday & 13:00 for monday. I have a
separate block of cells that calculate the weeks results so there is a
duty time cell with the total, adding both sunday & monday times
together gives me a total of 1130:00, not 26:00 that I want, I have
tried every format there is and can't get it to work. If anybody wants
me to email a copy of the time sheets to them I will with pleasure, I
have highlighted in orange the problem. There are no macros in my time
sheet.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:
http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313



  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default Formula is driving me crazy?????


hi!

if then
Open a blank sheet, Format all cells as [hh]:mm, in A1 put 06:00, in A2
put 05:00, in A3 put 07:00, in A4 put 08:00, now B1 put in the formula
=A1+A2 & in B2 put in formula =A3+A4. now put in B3 =B1+B2.

you will get "26:00"

it's simple!

-via135





Chris Watson Wrote:
OK this is the situation, I am designing a HGV Drivers timesheet which
includes deliveries and POA (Period of Availability) calculator. I have
10 sheets, sheet 1 is drivers details, Sheets 2 to 8 are days of the
week, sheet 9 is a weekly summary. as a test Sunday (Sheet 2) I started
work at 18:00 and finished at 07:00 giving 13:00 shift. Monday (sheet 3)
I started and finished the same as Sunday, I have transfered both total
times to sheet 9, 13:00 for sunday & 13:00 for monday. I have a
separate block of cells that calculate the weeks results so there is a
duty time cell with the total, adding both sunday & monday times
together gives me a total of 1130:00, not 26:00 that I want, I have
tried every format there is and can't get it to work. If anybody wants
me to email a copy of the time sheets to them I will with pleasure, I
have highlighted in orange the problem. There are no macros in my time
sheet.



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=511313



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Watson
 
Posts: n/a
Default Formula is driving me crazy?????


Hi Niek Otten I need your email to send workbook?????


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313

  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Watson
 
Posts: n/a
Default Formula is driving me crazy?????


Here is my workbook, Orange cells mark the



--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313

  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Anne Troy
 
Posts: n/a
Default Formula is driving me crazy?????

I have emailed Christ directly for his workbook. If I can help, I'll provide
the solution here. If I can't, I'll upload it and provide a link... :)
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Chris Watson"
wrote in message
news:Chris.Watson.232v3y_1139682602.5497@excelforu m-nospam.com...

Here is my workbook, Orange cells mark the



--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:
http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313



  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Anne Troy
 
Posts: n/a
Default Formula is driving me crazy?????

After tweaking, I've uploaded it he
http://www.officearticles.com/temp/chris.zip
Your first problem is that the cells in which you enter start and end time
have no dates. Since you're obviously spanning over midnight, you must tell
Excel the date as well or it believes the day is the same day.
Second problem is that all cells EXCEPT the time entry cells must be
formatted as [h]:mm because you want them to be ADDING hours, and not
calculating what the time would be after those hours are added.
:)
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Anne Troy" wrote in message
...
I have emailed Christ directly for his workbook. If I can help, I'll
provide the solution here. If I can't, I'll upload it and provide a link...
:)
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Chris Watson"
wrote in message
news:Chris.Watson.232v3y_1139682602.5497@excelforu m-nospam.com...

Here is my workbook, Orange cells mark the



--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:
http://www.excelforum.com/member.php...fo&userid=4700
View this thread:
http://www.excelforum.com/showthread...hreadid=511313





  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Watson
 
Posts: n/a
Default Formula is driving me crazy?????


Anne this is brilliant, your the headache tablet ive been looking for,
but I have a question ? is it possible to just type in the times in
Start and Finish without putting the date in, This timesheet is
designed for night shift work only so I will always start one day and
finish the next. Also there is one more problem thats bugging me and
that is if you look at cell U28, this is whats left of 48 hours POA in
a week, the law says that a driver of a HGV cannot exceed 48 hours POA
in a week and needs to know whats left. Cell L23 is the total POA of
the week so I need to take this figure away from 48:00, all I get is
#######.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313



  #16   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Anne Troy
 
Posts: n/a
Default Formula is driving me crazy?????

You're not really going to get away without putting in the date, and working
around that (having the date and time in 2 separate cells) will take someone
better than me. :)
It looks like POA will also work out if you format the cells as [h]:mm. And
you cannot have a "negative" time, really, so you need to handle that as
well.
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Chris Watson"
wrote in message
news:Chris.Watson.2343jz_1139740202.9775@excelforu m-nospam.com...

Anne this is brilliant, your the headache tablet ive been looking for,
but I have a question ? is it possible to just type in the times in
Start and Finish without putting the date in, This timesheet is
designed for night shift work only so I will always start one day and
finish the next. Also there is one more problem thats bugging me and
that is if you look at cell U28, this is whats left of 48 hours POA in
a week, the law says that a driver of a HGV cannot exceed 48 hours POA
in a week and needs to know whats left. Cell L23 is the total POA of
the week so I need to take this figure away from 48:00, all I get is
#######.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:
http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313



  #17   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sandy Mann
 
Posts: n/a
Default Formula is driving me crazy?????

You're not really going to get away without putting in the date,

If as Chris says the time are ALWAYS overnight then:

=MOD(Start Time - End time),1)

or

=Start Time - End time + (End Time < Start Time)

--
HTH

Sandy

with @tiscali.co.uk


"Anne Troy" wrote in message
...
You're not really going to get away without putting in the date, and
working around that (having the date and time in 2 separate cells) will
take someone better than me. :)
It looks like POA will also work out if you format the cells as [h]:mm.
And you cannot have a "negative" time, really, so you need to handle that
as well.
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Chris Watson"
wrote in message
news:Chris.Watson.2343jz_1139740202.9775@excelforu m-nospam.com...

Anne this is brilliant, your the headache tablet ive been looking for,
but I have a question ? is it possible to just type in the times in
Start and Finish without putting the date in, This timesheet is
designed for night shift work only so I will always start one day and
finish the next. Also there is one more problem thats bugging me and
that is if you look at cell U28, this is whats left of 48 hours POA in
a week, the law says that a driver of a HGV cannot exceed 48 hours POA
in a week and needs to know whats left. Cell L23 is the total POA of
the week so I need to take this figure away from 48:00, all I get is
#######.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:
http://www.excelforum.com/member.php...fo&userid=4700
View this thread:
http://www.excelforum.com/showthread...hreadid=511313





  #18   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sandy Mann
 
Posts: n/a
Default Formula is driving me crazy?????

I didn't say what I really meant:

If as Chris says the time are ALWAYS overnight then:


If the times are ALWAYS the same day or overnght, (ie never more than 24
hours between the Start/End times), then the formulas will return the
elapsed time without adding dates.


--
HTH

Sandy

with @tiscali.co.uk


"Sandy Mann" wrote in message
...
You're not really going to get away without putting in the date,


If as Chris says the time are ALWAYS overnight then:

=MOD(Start Time - End time),1)

or

=Start Time - End time + (End Time < Start Time)

--
HTH

Sandy

with @tiscali.co.uk


"Anne Troy" wrote in message
...
You're not really going to get away without putting in the date, and
working around that (having the date and time in 2 separate cells) will
take someone better than me. :)
It looks like POA will also work out if you format the cells as [h]:mm.
And you cannot have a "negative" time, really, so you need to handle that
as well.
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Chris Watson"
wrote in
message news:Chris.Watson.2343jz_1139740202.9775@excelforu m-nospam.com...

Anne this is brilliant, your the headache tablet ive been looking for,
but I have a question ? is it possible to just type in the times in
Start and Finish without putting the date in, This timesheet is
designed for night shift work only so I will always start one day and
finish the next. Also there is one more problem thats bugging me and
that is if you look at cell U28, this is whats left of 48 hours POA in
a week, the law says that a driver of a HGV cannot exceed 48 hours POA
in a week and needs to know whats left. Cell L23 is the total POA of
the week so I need to take this figure away from 48:00, all I get is
#######.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:
http://www.excelforum.com/member.php...fo&userid=4700
View this thread:
http://www.excelforum.com/showthread...hreadid=511313







  #19   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Watson
 
Posts: n/a
Default Formula is driving me crazy?????


Would it be possible to use AM & PM when entering times?????


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=511313

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
Sorry for reposting - but this is driving me crazy! Bean123r Excel Discussion (Misc queries) 1 January 27th 06 02:31 PM
HEEEEEEEEEELP!! This thing is driving me crazy. Esaam Excel Discussion (Misc queries) 1 January 22nd 06 10:24 AM
My Shared workbook is driving me crazy!!! Paul. Excel Discussion (Misc queries) 1 April 15th 05 11:56 AM
Help: Scroll wheel toggles between up and down, and left and right - is driving me crazy Dab Excel Discussion (Misc queries) 3 March 14th 05 03:17 PM
Date Comparison Driving Me Crazy DTODDP Excel Discussion (Misc queries) 5 January 27th 05 09:39 PM


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