Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Weekday + Time Calculation in Cell

Dear all,

If A1 is equal to Mon 1300, and when I plus another 12hrs in A2, it will
become Tue 0100 in A2.

Any idea how to achieve this?

Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Weekday + Time Calculation in Cell

You need to have a date/time in A1 - for example, enter 8/01/07 13:00
in this cell and use Format | Cells | Number (tab) | Custom and set the
format as ddd hh:mm.

Then in A2 enter this formula:

=A1 + 0.5

The format should be the same as A1. Excel treats times as fractions of
a 24-hour day, which is why you need to add 0.5.

Hope this helps.

Pete

Alexander wrote:

Dear all,

If A1 is equal to Mon 1300, and when I plus another 12hrs in A2, it will
become Tue 0100 in A2.

Any idea how to achieve this?

Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Weekday + Time Calculation in Cell

Hi Alexander

Excel stores time as fractions of a day, so 12 hours = 0.5. So in A2
=A1+0.5

If you were wanting to add times that were not as simple as that, e.g. 5
hours, then
=A1+5/24
or
=A1+TIME(5,0,0)

--
Regards

Roger Govier


"Alexander" wrote in message
...
Dear all,

If A1 is equal to Mon 1300, and when I plus another 12hrs in A2, it
will
become Tue 0100 in A2.

Any idea how to achieve this?

Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Weekday + Time Calculation in Cell

Thanks for the prompt reply. But this is going to be a repeated event.
Therefore, I cannot set a default timing at the very begining.

So, If I just want the add on the basis of ddd hh:mm, is that possible?

"Pete_UK" wrote:

You need to have a date/time in A1 - for example, enter 8/01/07 13:00
in this cell and use Format | Cells | Number (tab) | Custom and set the
format as ddd hh:mm.

Then in A2 enter this formula:

=A1 + 0.5

The format should be the same as A1. Excel treats times as fractions of
a 24-hour day, which is why you need to add 0.5.

Hope this helps.

Pete

Alexander wrote:

Dear all,

If A1 is equal to Mon 1300, and when I plus another 12hrs in A2, it will
become Tue 0100 in A2.

Any idea how to achieve this?

Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Weekday + Time Calculation in Cell

Yes, but what if I want the weekday change after time has been accumulated
over 24 hrs? Any chances?

"Roger Govier" wrote:

Hi Alexander

Excel stores time as fractions of a day, so 12 hours = 0.5. So in A2
=A1+0.5

If you were wanting to add times that were not as simple as that, e.g. 5
hours, then
=A1+5/24
or
=A1+TIME(5,0,0)

--
Regards

Roger Govier


"Alexander" wrote in message
...
Dear all,

If A1 is equal to Mon 1300, and when I plus another 12hrs in A2, it
will
become Tue 0100 in A2.

Any idea how to achieve this?

Thanks!







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Weekday + Time Calculation in Cell

Hallo

I have a quistion about time formats in exel too.

If I f.ex have the time 1 minut and 31 seconds (tt:mm:ss) = 0:01:31 but i
want the time only in seconds (ss) = 91.

How do I do that?

I hope you can help me!

Greetings

Mikkel



"Alexander" wrote:

Yes, but what if I want the weekday change after time has been accumulated
over 24 hrs? Any chances?

"Roger Govier" wrote:

Hi Alexander

Excel stores time as fractions of a day, so 12 hours = 0.5. So in A2
=A1+0.5

If you were wanting to add times that were not as simple as that, e.g. 5
hours, then
=A1+5/24
or
=A1+TIME(5,0,0)

--
Regards

Roger Govier


"Alexander" wrote in message
...
Dear all,

If A1 is equal to Mon 1300, and when I plus another 12hrs in A2, it
will
become Tue 0100 in A2.

Any idea how to achieve this?

Thanks!





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default Weekday + Time Calculation in Cell

Format as [s].
If you want to use the number 91 in a subsequent calculation, then use the
formula =A1*24*3600 (and format as general or number, not time).
--
David Biddulph

"Mikkel" wrote in message
...
Hallo

I have a quistion about time formats in exel too.

If I f.ex have the time 1 minut and 31 seconds (tt:mm:ss) = 0:01:31 but i
want the time only in seconds (ss) = 91.

How do I do that?

I hope you can help me!

Greetings

Mikkel



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Weekday + Time Calculation in Cell

Hi Alexander

Did you try it?
The date alters as well as the time.
If you are adding more than 24 hours then
=A1+50/24 would be the same as adding 2 days and 2 hours.

--
Regards

Roger Govier


"Alexander" wrote in message
...
Yes, but what if I want the weekday change after time has been
accumulated
over 24 hrs? Any chances?

"Roger Govier" wrote:

Hi Alexander

Excel stores time as fractions of a day, so 12 hours = 0.5. So in A2
=A1+0.5

If you were wanting to add times that were not as simple as that,
e.g. 5
hours, then
=A1+5/24
or
=A1+TIME(5,0,0)

--
Regards

Roger Govier


"Alexander" wrote in message
...
Dear all,

If A1 is equal to Mon 1300, and when I plus another 12hrs in A2, it
will
become Tue 0100 in A2.

Any idea how to achieve this?

Thanks!







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
Automatic time conversion in the SAME cell megs Excel Discussion (Misc queries) 8 November 19th 06 06:19 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
multiplycation of money cell and time cell engr625 Excel Worksheet Functions 1 August 3rd 05 04:53 AM
time calculation with military time Ron Thetford Excel Worksheet Functions 8 July 29th 05 07:24 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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