Tracker
HOME    TRACKER    Excel

# Convert Hours To Fractions Of Hours

## I am attempting to convert a spreadsheet of times (listed in the format 06:15:39.62, where 06 is the hour, 15 is the minutes, 39 is the seconds, and .62 is in truncated miliseconds) into fractions of hours (so, 6.25 [NOT 6:25!]). I've so far been doing it manually for each value, which is quite tedious (doing basic division of seconds and minutes into hours, to find the fraction) but I'd like a single formula which I can then apply to the whole spreadsheet.

Related Forum Messages:
Convert Second To Hours And Mins (over 24 Hours)
i need to convert second to Hours and mins and can do so using:

Time Conversion: Convert A Time From Hours/Minutes To Hours/Tenths
When I am converting a time from Hours/Minutes to Hours/Tenths, Excel is not converting it consitantely. EXAMPLE: 1:15 = 1.25. When I format the cell to present only one place past the decimal point, sometimes the cell will round up to 1.3, and other times it will round down to 1.2. What am I missing?

Solve Between 24 And 48 Hours OR Less Than 24 Hours OR Greater Than 48 Hours
In column A I have a date AND time entered. By the way, this is not via cell format, I have manually entered, say today's date and the current time. In column B I have a future date and time.

Basically, column A is the date and time a problem was given to me. Column B would be the date and time I resolved the problem. Now for the formula....Column C needs to spit out whether the problem was solved between 24 and 48 hours OR less than 24 hours OR greater than 48 hours.

Difference Between Dates And Times In Days , Hours Mins ( Working Hours )
The below formulae allows me to see the difference between two dates and only returns the difference in working hours ie :
Difference between
02/02/2010 08:00 & 03/02/2010 08:00 is 16 Hours 0 Minutes

=(INT(A3)-INT(C6))+MAX(MOD(A3,1)-MAX(MOD(C6,1)))

The following displays it in the Hrs and Mins format

=TEXT(B15,"[h]")&" Hour"&IF(OR(TEXT(B15,"[h]")+0=0,TEXT(B15,"[h]")+0>1),"s "," ")&MINUTE(B15)&" Minute"&IF(MINUTE(B15)1,"s ",""))

Format Time Cell For Greater Than 24 Hours: Hours & Minutes Only
Format Time Cell For Greater Than 24 Hours: Hours & Minutes Only .....

Time Scheduling: Take Out A 30 Min Break If The Hours Worked Is Over 6 Hours
I am making a schedule and I would like it to take out a 30 min break if the hours worked is over 6 hours.

I have so far

A B

1 11:00 7:30

=24*(B1-A1)

Gives me 8 hours, I would like it to subtract the 30 minutes only ifthe sum is over 6 and not alter the sum if it is under 6.

Format Total Hours To Days, Hours & Minutes
1) The output of an excel duration is : 22.00:8.00:25.00 ( day:hour:minutes ) - excel cannot average and work with this number format

2) resolution - =(LEFT(L2,4))+MID(L2, FIND(":",L2)+1,4)/24+MID(L2, FIND(":",L2,7)+1,4)/1440 as an array and Custom Format the cell as [h]:mm - works perfectly.

Q: to be conistent, the initial reporting is dd:hh:mm and then I convert to hh:mm so that excel can process the data. How can I convert from hh:mm to dd:hh:mm so that the excel report can be consistent in presenting the data to senior management?

example attached.

Count Hours Between 2 Times Based On Hours In Another Cell
A1 is 10 (10 hrs worked) , A2 is 10:30am (in time), A3 is 9:00pm (out time), A4 needs to be the total hours and minutes between A2 and A3 based on the hours listed in A-1. What i need is a formula that will calculate the hours and minutes between the 2 times based on hours entered in A1 but that will also compensate for a manadatory 30 minute lunch that needs to be deducted from the total hours if hrs listed in A1 are more than 6.

example: worked 10HRS, 10:30am to 9:00pm, Total hrs is 10hrs 30min, which should be just 10 since the lunch is a none work time and must be subtracted.

If a person worked more than 6hrs, they must take a lunch. if they worked less, than 6 then they don't have to. I need a calcuation to recognize the greater than, less than factor into the equasion also.

Convert Hours To Minutes
I have a database which shows a time some one came into work and a time they left. Formatted as HH:MM. I can minus the time they left from the time they came in...to work out how many hours they worked. However, whenever i want to work out how many mintes it is (time left - time in * 60). It does not seem to work.

Example

A1 - Time In 09:00
A2 - Time Out 17:00

A3 - Hours = 8 (A2-A1)

A4 - Mintes should be 480. (A3*60)

How Can I Convert 230 Into 2.5 Hours
i take 1630-1430 to get 230

hw can i convert 230 into 2.5hr?

Convert Minutes Into Decimal Hours
How to I convert minutes into the equivalent fractional hours?

Convert Hours To Minutes And Seconds
I am trying to use the Mod function to convert the following:

I have time in hours in A1 as 12.66 and I need it to convert to 12 hours in A2, 39 minutes in A3, and 36 seconds in A4. What formula can I use to achieve this?

Convert Time Decimals To Hours Mins
I am creating a very quick holiday excel sheet where people can fill in the hours they want on which days.

I have a summery sheet too.

So if someone wants to take a full day which is 7.4 hours. How would this be represented as Hours and minutes?

Convert Number To Hours & Minutes
How can I convert an ordinary number i.e. 3.45 to Hours & Minutes?

A colleague has columns of data that when summed are all wrong i.e. 8.65 instead of 9 Hours 5 minutes.

Convert Decimal Hours To True Time
formulae that converts % into time and visa-versa.

I.e 1.5 hrs = 1.30 hours ( i.e 90mins)
or the other way round
1.30 hours = 1.5 hrs..

Convert Decimal To Days/hours/mins/secs
I was messing around with a simple countdown timer and need a little help converting a decimal into a format of #days, #hours, #minutes and #seconds.

Cell A1 has target to countdown to 4/14/2010 12:00:00 AM
Cell A2 contains =NOW()
Cell A3 contains =A1-A2 with the result being 69.4021441 with the amount of decimal places varying depending on when it is refreshed.

I'd Like the result in A3 to read something like "There are 69 days, XX hours, XX minutes and XX seconds until event"

Displaying Sums Of More Than 24 Hours, As Hours.
I am trying to compute a running total of hours (from row 1) in row 2 Example................

As you can see, when the sum exceeds 24 (moving to the right across row 2) the answer resets, so to speak. Cells are formatted as time. This format *seems* incapable of recognizing quantities of hours over 24 except as days, as it were. This is obviously useful in most sorts of cases but not in this sort of case.

If I simply want the aggregate number of hours expressed as such am I doomed to failure whenever the total exceeds 24? In reply to a somewhat similar enquiry elsewhere in this forum, advice was given to format a cell as Elapsed Time. I dont see such a choice in my dropdown menu.

Convert Total Time To Days & Hours, Minutes
I have a column of tasks that take a certain amount of time to complete formated as h:mm:ss. I want to total the column and convert the total to days, hours and minutes. Is that posible and if so how do I configure a formula and format the cell? example:

total 153:01:05

How many days, hours and minutes?

Convert Decimal Minutes & Seconds To Days & Hours
I have two columns A and B. Column A contains problem title and column B is duration minutes. In column B we enter always min and seconds it took us to resolve certain issues (22.15 = 22 minutes and 15 seconds) . At the end of the month I need to run a report for my manager to show her by problem title how long it took my group to resolve issues and it should output as Hours/min/days.

Convert 3786 Minutes To Day:hours:minutes
I'm trying to convert 3786 minutes to day:hours:minutes. So divided it by 1440 which is 2.63... but I want this displayed in the worksheet as 2 days 1 hour and 3 minutes (02:01:03), I just can't seem to get it to work and it seems quite simple... but I'm missing something.... I was trying a custom format like dd:hh:mm or [d]:hh:mm and I was also trying a convert function and =day/1440+hour +minute

Convert Seconds Into Hours, Minutes & Seconds
I have a spreadsheet that imports data relating to phone call durations. The information imports as a total number of seconds taken.

What I need to do is to change that number of seconds into hours, minutes and seconds.

Changing the format of the cells doesn't work.

I've tried everything I can think of, and run out of ideas.

example:

23 needs changing to 00:00:23
96 needs changing to 00:01:36
268 to 00:04:28
9374 to 02:35:14

Convert Hours To Minutes. Display Total Minutes
I have a formula which will calculate the number of hours and minutes between two military times. I would like it to calculate the total number of minutes instead of hours and minutes. I have uploaded a small example of what i have so far.

Convert Hours, Minutes And Seconds Into Total Seconds
I trying to figure a formula to convert time on a phone call eg. 01:01:21 into total seconds (3661). Phonecalls will never be more than an hour long but the spreadsheet I will be supplied with (havn't got it yet!) will display them in the 00:00:00 format.

Convert Decimal Hours And Minutes To Minutes
What formula will convert 4.50 to 530 minutes ( "Decimal Time" )

another example 16.50 to 1250 minutes.

Convert Hours & Minutes To Minutes `
I have a worksheet which I am trying to format as a template which includes inputting start times and end times of work and calculating how many minutes are taken to do the job. I just can seem to find the correct formula.

Hours:minutes:seconds Convert To Seconds
I am trying to convert a number of "hours" "minutes" and "seconds", to give me a result in seconds only, in order that I may then financially cost the amount of time spent on a task. (A time and motion costing exercise)

Example:

1119:48:06
Represents 1119hours:48minutes:36seconds spent on a task.

I can manually convert this to 4031286 seconds, but it just takes too much time !!!(sorry!)

The data is extracted from a database which is unable to split the hours,minutes,seconds into seperate fields, which prevents me from using three cells in excel.

Convert Seconds Into Hours:Minutes:Seconds
Is there an easy way of converting seconds from using a time into hours, minutes, seconds

How Can I Convert Decimals To Fractions?
1.25 is in cell A1. This number will often be buried in a longer part number that may look like ELL-1.25-S40.

I would like to use a formula in cell A2 to display the fractional equivalent (1-1/4).

Convert 1/2-20 3a Fractions Into Decimal
I need to convert the fraction at the beginning of a cells text into the decimal equivelent. for example 1/4-20 3A would give .2500. I have this formula so far that works perfect for fractions that only contain 1 number on each side of the division sign such as 1/2.

Convert Fractions To Decimals And Decimal To Fraction
I know that if I enter =3/4 in a cell it will give me .75 but is there is formula to convert fractions into decimals or is this the best way to do it? I was also wondering if there is some way to convert the decimal amount to a fraction

for measurement conversions I know that
=B3*25.4 will convert a decimal to mm and so will the formula =CONVERT(E4,"in","mm")

and to convert mm to a decimal a few formula that work are
=CONVERT(H3,"mm","in")
=MROUND(H4/25.4, 1/8)
=H5/25.4
=INT(H6/25.39999918*8)/8

But is there a way to convert a fraction to the decimal and is there a way to convert mm to a fraction instead of the decimal equivalent of the fraction?
or maybe a formula to convert mm to inches but instead of the result being in decimal format it would be in fraction format?

I have two employees and need to be able to add the hours each works so I have a daily running total of their hours together (the two employees can't work more than 30 hours together each week).

What do I put in F5 so I can easily read that, together, they have so far worked 7 hours and 24 minutes? How do I format the cell: time? which time? numbers?

ABCDEF1DAYDATEINOUTHOURS2
MON
02/15/102:12 PM5:37 PM3.423
MON
02/15/102:12 PM5:37 PM3.424

5

Total Hours:

Count Hours
How to count the hours using Excel cells (for time table scheduling)....for example : 11:00-9:00 is 10 hours, "OFF" is 0 hour, "X" means 0 also, 10:00-7:00 is 9 hours, and so on. But when I try to put the hours, they show ###### in the cells? I know the time table is mixed with numbers and letters, that's why I'm confused to use any formula to do it, but my boss told me NOT to change the original format what so ever.

Calculate Hours
I am designing a simple time card. Column D=time in, Column E=time out. My formula in column F to calculate total hours is =TEXT(E2-D2,"[h]hrs"). The result is not correct. Example: In at 9:30 out at 5:00 and the calculated total is -4 hours.

Calculate The Hours
How to calculate the Hours
Check the attached file

Shifts Hours..
In the attached WB - the formula, in Col. "D", seems to be too long - although returning the expected result. Could somebody lighten my eyes with a much shorter formula ?

Converting Hh:mm:ss To Hours
convert hh:mm:ss into hours, that is 90:10:20 to 90.1722

From Decimal To Hours And Minutes
I have a spreadsheet that keeps track of my flight time by the day and then totals it for the month however, I keep it in a decimal number (i.e. 89.23). I want the final total number to be in Hours and Minutes hhh:mm and can not for the life of me figure out the formula to make it come out in hours and minutes. I can either convert the one final decimal number over to hours and minutes or add the entire collumn of decimal numbers and have THAT total converted to hours and minutes. It's doesn't matter to me. I just can't figure out the formula.

Calculating Hours Worked
I can do the timesheet formula for adding the hours worked as follows:

Start Finish Total
08:45 17:15 8.5

However, it doesn't work when I fill in a whole week work of hours in this format:

Start Finish Total
08:45 17:15 08:30

It works on a daily basis, but when total hours exceeds 24, the formula get's all mixed up - how to I format the total column to account for every 5 minutes worked, which you can't do when converting to decimal??

I want to write a macro to add business hours to a datetime value, excluding weekends, non-working hours and holidays.

e.g., I have a value (datetime) of "18/12/2009 11:30:00 AM", I want to add 10 hours to this, so as to get the result as "19/12/2009 12:30:00 PM".

Function Decimal To Hours
I'm trying to do is to convert an hours per week field as a decimal into hh:mm as text. For example, 22.8 would convert to 22:48.

Public Function DecToHours(Ldecimal1 As Long)

Dim Ldecimal2 As Long
Dim Shours As String

Ldecimal1 = ActiveCell - Round(ActiveCell, 0)
Ldecimal2 = (ActiveCell - Ldecimal1) * 60

Shours = Round(ActiveCell, 0) & ":" & Ldecimal2

End Function

Calculating Rostered Hours
I want to calculate employee rostered hours or days off from an exported crystal reports. The problem isn't how to calculate the hours but to calculate accurately when formatting changes occur in the exported report. This is an example for the exported sheet data.

http://farm3.static.flickr.com/2748/...50a38e59_o.jpg

So to calculate data intially using the formula

Add Up All The Hours And Minutes
i am trying to make a employee work hour sheet so i can add the time and it add up all the hours and minutes he/she been working . now what i am trying to do is to enter 810 in the cell it automatically change it to 8:10 format but the problem it change it to 12:00:00.
even when i enter 083612 it again change it to 12:00:00.

now i have used the format cell > time and no luck. i already removed and installed my office but i still have the same problem.

Lookup And Average Hours
For my business, I am tracking how many sales I am doing per hour. That one was easy. NOW I need to track the average number of customers that I have for each day of the week, Sunday-Saturday. I need for one page to look at another page and, every time the word 'Sunday' is there, take that row of hourly jobs and average them with every other 'Sunday' and give me the total average number of customers on each Sunday, Monday, etc.

Attached is my worksheet for review. If you look at the 'Tracking' and 'Balances' tabs, you'll get the idea......

Calculate Hours For Various Equipment
I've got a spreadsheet that lists multiple pieces of equipment and when it was worked on or down. It has the following columns:

Date
Jeep #
Start Time
Stop Time
Total Repair Time
Other Downtime (which is most often blank, as below)

7/18/06.......35.....1:00 PM.....2:00 PM.......1:00
7/20/06.......33.....1:00 PM.....2:00 PM.......1:00
7/28/06.......35.....9:00 AM....11:00 AM......2:00
10/18/06.....50.....6:30 AM.....7:00 AM.......0:30
10/18/06.....33.....9:00 AM.....11:00 AM.....2:00

(I hope the ... is okay, couldn't figure out how to make the columns line up.)

I can use Sheet Two for the next part, but I don't know how to to get a total time per month for each seperate jeep. Most of the time, there will only be one record per month per jeep, like the second line above. But lines one and three are for the same jeep, and so I need the formula to add column E up only for those two lines.

Totalling Hours Per Day
On my spreadsheet I'm after a formula for cells E2 and F2 that I can drag down and it automatically populates the cells relevent to the day with the total hours for the Sessions (E2) and the total hours per day (F2). Hope this makes sense, but I'm sure you'll gather want I mean from the spreadsheet.

Count Times Between Hours
I am working on a spreadsheet where I want to count the number of calls to our service desk between specific hours (ie. 6:00 a.m. - 7:00 a.m.) up through 8:00 p.m. I have looked at all the forums and tried all the formulas that seemed to be what I was looking for and it isn't working! I am adding the information to a summary spreadsheet from which I am gathering the information from other sheets in the workbook. This will be an ongoing spreadsheet done weekly for every month.

Examples: I need to know how many calls from these times on a summary sheet.

6:23
6:28
6:59
7:09
7:35
7:38
8:00
8:26
8:34
8:42
8:43
9:02
9:04
9:23
9:27
9:31
10:06
10:23
10:37
10:51
11:05
11:09
11:19

I use this formula at work to calculate business hours from Mon-Fri:

=IF(OR(L10="",L11=""),"",(NETWORKDAYS(L10,L11,\$N\$2:\$N\$23)-1)*(\$Q\$3-\$Q\$2)+IF(OR(ISNUMBER(MATCH(INT(L11),\$N\$2:\$N\$23,0)),WEEKDAY(L11,2)>5),\$Q\$3,MEDIAN(MOD(L11,1),\$Q\$3,\$Q\$2))-IF(OR(ISNUMBER(MATCH(INT(L10),\$N\$2:\$N\$23,0)),WEEKDAY(L10,2)>5),\$Q\$2,MEDIAN(MOD(L10,1),\$Q\$3,\$Q\$2)))

where Q3= business start time 8.30am
where Q2= business end time 5.30pm

thus the difference between 18-Apr-08 16:30 and 21-Apr-08 13:30 is 6 hours.

I now need to adapt this formula for another Department that also works on Saturday from 8.30am to 5.30pm.

Worked Hours Between Two Periods
I'm trying to calculate the total hours worked for two given periods over a shift , which can span two consecutive days ie. start 15:45 and finish at 00:15 the next day. Hours worked between 6am and 6pm are paid at standard rate, whilst hours worked between 6pm and 6am attract penalty rates. Hours are cacluated in 24hr time

I have attached a copy of the timesheet that we use so you can see exactly what I'm trying to achieve, and included most of the shifts that we have.

I have created a fairly large spreadsheet (10Mb) to fully account for pilots hours in accordance with the current legislation laid down in CAP 371. It covers just about every aspect and I am delighted with it - BUT - I would very much like it to open on todays date?

Basically, each pilot has a sheet where he/she enters only duty times and the hours that are flown and the sheet works everything else out. At the moment I have it working well for 10 pilots but adding more would be easy. On top of this sheet 11 is a summary for the Chief Pilot (Me) to see exactly who is doing what in terms of hours, duty times etc etc. Obviously the summary is just a matter of moving the information from the pilots sheets on to the summary - this works well. But again it would be a blessing in disguise if on opening or even if the computers are left on they opened/stayed on todays date.

Schedule The Hours Are Different Than The Numerical Value
I have an excel document and I don't know which formulas to use. Here is how the document is laid out, it's an employee schedule.

The row includes A: Name B: Sunday C: Monday ... J: Total

Columns below include the employee names. What I am doing is filling out the employee schedule and I need excel to calculate scheduled hours. My problem is, when I make the schedule the hours are different than the numerical value given by excel. For example, Sunday I have an employee scheduled from 8-4. That's 8 AM until 4 PM; or a total time of 8 hours. Excel would read that as 8 (minus) 4, rendering the results useless. Once I figure out how to calculate hours by such input, I'll need to make totals which won't be as difficult.

Also, if there is a way to set the value of the word "Close" to 12:15 AM that would be extremely beneficial as well.