Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I am trying to change hh:mm:ss into a percent of one hour, using .

I can't figure out how to create a formula that will change
hours:minute:seconds into a percentage, so that I can analize for how much
time in relationship to the % of an hour was used.
Example a report that is generated displays: 0:15:00 how do I write a
formula to change this number into .25, which would representant .25 of an
hour?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default I am trying to change hh:mm:ss into a percent of one hour, using .

For A1 formatted as HH:MM:SS, then B1 (formatted as %) =Minute(A1)/60 will
give a value of 25%.

Are you only interested in the minutes?

HTH

"Jana" wrote:

I can't figure out how to create a formula that will change
hours:minute:seconds into a percentage, so that I can analize for how much
time in relationship to the % of an hour was used.
Example a report that is generated displays: 0:15:00 how do I write a
formula to change this number into .25, which would representant .25 of an
hour?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default I am trying to change hh:mm:ss into a percent of one hour, using .

Time in Excel is actually stored as a number where the value 1 is equal to a
day, so you would need to do this:
Take the MOD of the number with 1 to make sure you only have the decimal
portion (hours of the day)
Take the resulting value and divide it by "an hour" which is 1/24th of a day
(and dividing by 1/24 is the same as multiplying by 24)
The resulting formula (assuming you have a time in A1) would be:
=MOD(A1,1)*24
To display properly, make sure the format for your formula cell is Number,
not Date or Time.

"Jana" wrote:

I can't figure out how to create a formula that will change
hours:minute:seconds into a percentage, so that I can analize for how much
time in relationship to the % of an hour was used.
Example a report that is generated displays: 0:15:00 how do I write a
formula to change this number into .25, which would representant .25 of an
hour?

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
Weighting a Percent of Change Jessica Excel Worksheet Functions 3 February 8th 08 08:34 PM
Percent change cardfan057 Excel Discussion (Misc queries) 4 May 10th 06 04:29 PM
Percent Change Ralph D via OfficeKB.com Excel Discussion (Misc queries) 1 December 8th 05 08:18 PM
Percent Change Tom B via OfficeKB.com Excel Discussion (Misc queries) 4 July 29th 05 04:42 PM
percent change stephenm Excel Worksheet Functions 5 July 19th 05 01:33 AM


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