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

I have a formula that calculates time.
The following cells contain the following data.
Cell B381 contains 8:00 AM
Cell C381 contains 4:45 PM
Cell E381 contains =TEXT(C381-B381-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")
which calculates to 8 hrs: 15 mins.

In cell G381, I want to display the time from cell E381 as 8.25
What formula do I use in G381?

Any help would be greatly appreciated
Thank you for your time in advance, Karen



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default ~Time Calculation

One way:

=E281*24

XL stores times as fractional days, so multiplying by 24 gives integral
hours.

In article ,
Karen wrote:

I have a formula that calculates time.
The following cells contain the following data.
Cell B381 contains 8:00 AM
Cell C381 contains 4:45 PM
Cell E381 contains =TEXT(C381-B381-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")
which calculates to 8 hrs: 15 mins.

In cell G381, I want to display the time from cell E381 as 8.25
What formula do I use in G381?

Any help would be greatly appreciated
Thank you for your time in advance, Karen

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default ~Time Calculation

Put this formula in G381:

=(C381-B381-TIME(,30,))*24

and format the cell as General or Number with 2 dp.

Hope this helps.

Pete

On Feb 18, 3:29*pm, Karen wrote:
I have a formula that calculates time.
The following cells contain the following data.
Cell B381 contains 8:00 AM
Cell C381 contains 4:45 PM
Cell E381 contains =TEXT(C381-B381-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")
which calculates to 8 hrs: 15 mins.

In cell G381, I want to display the time from cell E381 as 8.25
What formula do I use in G381?

Any help would be greatly appreciated
Thank you for your time in advance, Karen


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default ~Time Calculation

Thank you for your help. I entered the formula =E381*24 and I received the
#VALUE! error
Any ideas?

"JE McGimpsey" wrote:

One way:

=E281*24

XL stores times as fractional days, so multiplying by 24 gives integral
hours.

In article ,
Karen wrote:

I have a formula that calculates time.
The following cells contain the following data.
Cell B381 contains 8:00 AM
Cell C381 contains 4:45 PM
Cell E381 contains =TEXT(C381-B381-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")
which calculates to 8 hrs: 15 mins.

In cell G381, I want to display the time from cell E381 as 8.25
What formula do I use in G381?

Any help would be greatly appreciated
Thank you for your time in advance, Karen


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default ~Time Calculation

Thank you sooooooooooo much Pete! It works great!
That was so nice of you to help me and so quickly I might add.
Have a beautiful day, Karen

"Pete_UK" wrote:

Put this formula in G381:

=(C381-B381-TIME(,30,))*24

and format the cell as General or Number with 2 dp.

Hope this helps.

Pete

On Feb 18, 3:29 pm, Karen wrote:
I have a formula that calculates time.
The following cells contain the following data.
Cell B381 contains 8:00 AM
Cell C381 contains 4:45 PM
Cell E381 contains =TEXT(C381-B381-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")
which calculates to 8 hrs: 15 mins.

In cell G381, I want to display the time from cell E381 as 8.25
What formula do I use in G381?

Any help would be greatly appreciated
Thank you for your time in advance, Karen





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default ~Time Calculation

Well that was dumb.

Most efficient is to change E381 to

=C381-B381-TIME(,30,)

and format the cell with the string in your text function
(Format/Cells/Number/Custom).

Or equivalently:

=MOD(C381-B381-1/48,1)



In article ,
Karen wrote:

Thank you for your help. I entered the formula =E381*24 and I received the
#VALUE! error
Any ideas?

"JE McGimpsey" wrote:

One way:

=E281*24

XL stores times as fractional days, so multiplying by 24 gives integral
hours.

In article ,
Karen wrote:

I have a formula that calculates time.
The following cells contain the following data.
Cell B381 contains 8:00 AM
Cell C381 contains 4:45 PM
Cell E381 contains =TEXT(C381-B381-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")
which calculates to 8 hrs: 15 mins.

In cell G381, I want to display the time from cell E381 as 8.25
What formula do I use in G381?

Any help would be greatly appreciated
Thank you for your time in advance, Karen


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default ~Time Calculation

You're welcome, Karen - thanks for feeding back.

Pete

On Feb 18, 3:51*pm, Karen wrote:
Thank you sooooooooooo much Pete! It works great!
That was so nice of you to help me and so quickly I might add.
Have a beautiful day, Karen


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
Stop time - start time calculation squack21 Excel Worksheet Functions 5 December 10th 07 03:20 PM
Time calculation (Subraction of Idle Time) Ajay Excel Discussion (Misc queries) 6 March 4th 07 11:54 AM
Ignoring Time in a Date Time Calculation nmp Excel Worksheet Functions 3 November 23rd 05 08:32 PM
Time Calculation BFiedler Excel Worksheet Functions 0 September 20th 05 01:34 AM
time calculation with military time Ron Thetford Excel Worksheet Functions 8 July 29th 05 07:24 PM


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