Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


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"

View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
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


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 ",""))

View Replies!   View Related
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.

View Replies!   View Related
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?

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

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

View Replies!   View Related
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..

View Replies!   View Related
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:

task 1 54:00:00
task 2 20:45:00
task 3 27:05:20
task 4 51:10:45
total 153:01:05

How many days, hours and minutes?

View Replies!   View Related
Countif Of Hours And Mins Not Dates
I have a data feed that gives a column of cells formated mm/dd/yy hh:mm
These are call entries, what i want to do is count all the occurances each hour, so count all the entries say between 9am and 10am. However the column is very long and holds data for many weeks so i want to be able to ignore the date part of the cell.

For example

3/17/09 9:58
3/18/09 10:58
3/18/09 8:58
3/19/09 8:58
3/19/09 9:58
3/19/09 9:58

So the entries between 9 and 10 are = 3

Ideally i do not want to do text to colums and split out the parts. i would like to leave the source data alone.

View Replies!   View Related
Formula Change Seconds To Hours And Mins
Formula that will change seconds to hours and mins, example 270 mins would show up as 4 hours 30 mins, not 4.5 hours. My second thing is how can I double the times in the same formula.

View Replies!   View Related
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.

View Replies!   View Related
Formula To Calculate How Many Hours Minus 30 Mins For Lunch
If a person does a full day I want the formula to calculate how many hours minus 30 mins for lunch i.e. 7:30 - 4:00 = 8 hours. I have done this and it works fine, the problem comes when a person does a half day i.e. 7:30 - 11:30, this will read 4.5 hours. If this is the case I don't want the 30mins deducted so it should be 4.0 hours worked.

I have high lighted a column in the work sheet (yellow) whereby the user puts an 'x' in the appropriate cell if they are working a half day.

The probem is I cannot incorperate the two formulas in one cell (the Actual hours cell) I have the one formula in the actual hours cell and the other bolted on the end thus giving two different readings.

View Replies!   View Related
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.

View Replies!   View Related
Convert Or Format Decimal To X Digits Without Decimal Point
I am trying to create a unique sample code by putting together the values of other cells that a user will input. It's all working well apart from the last part, where I am trying to include a decimal number. I want the decimal number to appear without the central "." and in a four digit format. e.g. 2.5 would appear as 0250, 14.25 would appear as 1425. This is the formlua I am using currently:


However, where the value of H4 is 2.5, I am getting a result of 0303 (I've put this part in bold). I have attached a small spreadsheet to aid understanding.

View Replies!   View Related
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.

View Replies!   View Related
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.

View Replies!   View Related
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

View Replies!   View Related
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?

View Replies!   View Related
Calculating Hours Across Days
I have a spreadsheet where I record individual staff start time, end times and the length of their break. From this I caculate the hours they worked for the day.

E holds Start, F holds End and G holds Break length. Thus using the following forumula gives me the number of hours and minutes:

View Replies!   View Related
Counting Days And Hours
I have a questions about counting days and hours.

Imagine that i have an item entering my warehouse on 22/05/2008 at 21h35 and leaving on the 25/05/2008 at 5h42.

A1= 22/05/2008 and B1= 21h35
A2= 25/05/2008 and B2= 5h42

The goal is to count the full 24 hours day and the remaining hours.

For the example given i can say that on day 22 the item only says 2 hours and 25 minutes, on day 23 it stays 24 hours and on day 24 another 24 hours, on day 25 the item leaves at 5h42, so it only stays those 5h42.

So we have 2 full 24 hour days and 2h25 plus the 5h42, the the item were stored 2 days and 8 hours and 7 minutes.

The problem is when the item arrives at (example) 22/05/2008 2h00 and leaves at 25/05/2008 23h00 on another day. Lets say that on the first day the item is 22 hours stored, plus the 2 full 24 hour day and another 23 hours.
So it is 2 days plus the 45 hours, that is 2 days plus 1 day and the remaining 21 hours.

how to add to this 2 full days the 1 day and 21 hours

View Replies!   View Related
Convert [s] To Decimal
I'm trying to find out how many 40 hour shifts we had in a week by dividing the total seconds staffed (2989957) by total seconds in a week (144000) to get a 2 digit decimal result. I have a field formatted as [s] that I need to convert to decimal but when I do a calculation using that field it comes out as [s}.

Cell A1: 2989957 formatted as [s]
Cell B2: =A1/144000 formatted as number with 2 decimals
Result shows 0.00

If I use that calculation in a cell with a general format, I get 21 and it reverts to [s] format.

View Replies!   View Related
Days, Hours, Minutes And Seconds
Does any know how I can convert 29.18:20:18 to total minutes?

View Replies!   View Related
Convert Number To Decimal
I need a formula to take the numbers listed in cells D4:D50

If below 1,000,000 than just keep that number value


If the Ten Thousands place is 5 or below leave the same if it is higher round up. (use this concept for ALL PLACE VALUES

1,500,000 to 1.5 million (if the rest are zeros)

4,000,000 to 4 million

1,564,535 than to 1.57 million

1,545,535 than to 1.54 million

1,555,000 than to 1.55 million

Same concept for the rest as the Millions (move the rounded place up as needed)

So for Billions it would be 10 Millions place (to round form) I think lol

1,000,000,000 to 1 Billion

1,500,000,000 to 1.5 Billion

1,560,000,000 to 1.57 Billion

1,578,000,000 to 1.58 Billion

1,700,000,000 to 1.7 Billion

I would like this to continue all the way up to place value 999 QUADILLION! (if possible) if the value can go bigger that would be great!

View Replies!   View Related
Convert Time To Decimal
I am trying to convert time (formated as hh:mm) to a number with 2 decimal places.


A1 7:51
B1 - want the number to show 7.85

Will then multiply this by an hourly wage to get total $ paid.

View Replies!   View Related
Convert Decimal To Percentage
Is there a method to automatically convert a decimal to a percentage?

For example:

if given the value of 76.48, is it possible to automatically convert this to 76.48%? Formatting the cell as a percentage produces 7648%. I've tried everything I know and can't get the right result.

View Replies!   View Related
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.

View Replies!   View Related
Adding Seconds And Minutes To Get Hours And Days
I am trying to add duration time for song files. 4 minutes and 32 seconds + 3 minutes 45 seconds, etc. etc. to get total hours and then to total to days. The range of cells is over 5,000 and I am trying to find out how long a playlist will play.

View Replies!   View Related
Expressing A Number Into Days-hours-minutes
I'm hoping someone here might be able to help me please?

I am trying to write a function that will convert a number into days-hours-minutes. I have managed to get as far as hours-minutes using the following function.

=INT(A1/60)&"h "&ROUND(MOD(A1/60,1)*60,0)&"m"

e.g. If A1 = "7090" the result of this function will be "118h 10m".

I now need to express the result as xxxd xxxh xxxm and this is where I am stuck!

View Replies!   View Related
Convert Feet/inches To Decimal
Is there a way to convert a value in a cell that is 2'-3 1/2" to adecimal such as 27.5"?

excel 2003 SP2

View Replies!   View Related
Convert Decimal Value Into Total Seconds
I have a formula that reads like this


The formula is used to calculate a comparative run time at an elevation of 5000 feet. The time the run was in is 11 minutes and 40 seconds. What I need to do is convert the 11.40 into total seconds which would be 700.

Now the actual 11.4 in the forumala is from a cell reference (say D14). It's whatever time the member plugs in (and so is the 5000, this represents the members altitude).

I need the time to stay in a decimal format because I have a huge database that I perform a lookup on to find the point value for it for another calculation seperate from this one. If I were to plug 700 in place of 11.4 my calculated result would be 683.43 which is exactly what I need.

View Replies!   View Related
Text To Columns And Convert Them To Decimal
I got following Hex data in text format, I need change them to decimal,

0324 00BF 0000 0000 030C 00C6 0000 0000
0305 00C7 0000 0000 02FE 300F 040B 4753
4D4D 5352 4E4D 5343 4E31 0030 0F0A 0101

firstly I did txt to columns, then I found some data changed to scientific format which is not I wanted as I could not convert it using function HEX2DEC.


if I set column data format to text when I doing Text to Columns operation then all data will be text, so I still can not convert them to decimal.

View Replies!   View Related
Convert Decimal To 13 Bit Binary
I was reading this Binary Conversion from Decimal on this site, however i am unable to reply to the thread. This code is exactly what i was looking for but have the need for it to be able to give the result as a number of bits eg. i would like the result to be dispalyed as 13 bits. I have tried modifying the code without any success and would like to be able to use it in this form. Public Function Dec2Base( Num As Long, base As Long, length as long) As String

View Replies!   View Related
Convert Decimal Time To Hundredths
Have a large spreadsheet with time posted in minutes, but is formatted as "general" not time. (ie 8.15 is the entry in general format. Needs to be 8.25 to pay employee correctly). What formula can I use to convert that 8.15 to 8.25 easily?

View Replies!   View Related
Adding Last 3 Days Hours Worked When A Date Is Entered
1 4/1/09 12:15
2 4/2/09 10:00
3 4/4/09 8:10
4 4/6/09 9:00
5 4/8/09 5:00
6 4/11/09 7:00

I need to add up hours worked of last 3 days including current day. The date column does not contain everyday's date. How do I formulate a cell for date entry and another cell will show the sum of last 3 days including date not shown and date entered? E.g. If I enter date 4/6/09, result should be 17:10 hrs; 4/11/09, result should be 7:00.

View Replies!   View Related
Work Days And Hours Between Two Dates & Times
I am creating a 'HelpDesk Issue Logger' and I am trying to calculate the Network Days and Network Hours between two dates with times. I want to know how many business days and hours are between the two days to give me a TURE 'Response Time.'

I have been to several sites and forums looking for the answer, but I have not been able to find a solutions that works for me. Please find attached a 'stripped' down version of my project.

- 'Date Received' (H11)
- 'Date Actioned.' (I11)
-'Response Time' (K11)

Work Days = Monday to Friday
Work Hrs = 8:30 AM to 5:30 PM (no lunch break)
Public Holidays = (AC13:AC30)

Date Received: dd/mm/yyyy hh:mm AM/PM
Date Actioned: dd/mm/yyyy hh:mm AM/PM
Response Time: d - hh:mm

If there is someone out there wiling to put me out of my missery with this one, you will have a friend for life.

View Replies!   View Related
Calculate Time Differrence In Days Hours Minutes
I have been trying to write a formula to calculate the differrence in days, hours or minutes between 2 cells in Excel.

Here is an example of the two cells

06/08/2011 00:0006/08/2011 12:19

View Replies!   View Related
Convert Fraction From ComboBox To Decimal In TextBox
i have a combo boxes populated with fractions 1/16, 1/8, 3/16, 1/4 etc up to 15/16.

i just want to output the chosen fraction to a textbox as a decimal.

This is done in a userform, not in a cell.

View Replies!   View Related
Convert Decimal Alphanumeric Text To Whole Number
i wanna convert the decimal number to a round 2.0L to 2L.

View Replies!   View Related
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
=MROUND(H4/25.4, 1/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?

View Replies!   View Related
Cell Formated To Show Days, Hours, Minutes, Seconds
I have the foollowing equation in a cell:


My answer is 1081:23:42.

Is there a way to have it show the number of days, hours, minutes and seconds? So it will say 45:1:23:42? (45 days, 1 hour, etc...) Or something along these lines?

View Replies!   View Related
Subtract Date/time And Get Elapses Days, Hours, Minutes, Etc
I want a forumal to do in excel.

Assuming that a workday is from 8:30am to 5:00pm. (also need to not calcualte Saturday and Sunday but this example doesn't show it).

Wednesday, 7/18/07 at 4:00pm (minus) Friday, 7/20/07 at 9:00am (should equal) 10 hours or 1 day, 1 hour and 30 minutes.

Basically what I want to do it determine how much work time has elapsed from the time a message was left on voicemail to the time that someone picks that message up. We only want to assume that a message can be retrieved duruing business hours but a message can be left at anytime!

View Replies!   View Related
Convert Excel Decimal Total To Minutes And Seconds
I have listed a total amount of timings for a study that I have totalled giving me a figure of 34.76 which is under an hour.

how do i convert to min and seconds - is there a formula?

View Replies!   View Related
Formula To Comput Hours:minutes Between Time On Different Dates A Couple Of Days Apart
Im trying to figure out the formula to comput hours:minutes between time on different dates a couple of days apart.

B12 = Date
B15 = Time (on date in B12)

Previous date and time are in AA9. I have been trying to us =SUM(B12+B15)-(AA9).

View Replies!   View Related
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 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.


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

A3 - Hours = 8 (A2-A1)

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

View Replies!   View Related
How Can I Convert 230 Into 2.5 Hours
i take 1630-1430 to get 230

hw can i convert 230 into 2.5hr?

View Replies!   View Related
Convert Decimal Degrees To Degress, Minutes & Seconds
Need to convert decimal degrees into degrees, minutes, & seconds (displayed in three columns). Currently calculated manually from ATAN, ASIN, or ACOS functions.

View Replies!   View Related
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?

View Replies!   View Related
Stop Hexadecimal Number Displaying As Exponential & Convert To Decimal
I use hex2dec frequently and input with a hex 'E' such as 05e8 is misinterpreted as exponential notation. I can use =hex2dec("05e8") to get the correct value, but when the hex number is in another cell, I get the exponent assumption/ conversion (to 5 x 10e8), or a # NUM error if it is in quotes. This seems like a blatant problem but I've found no mention of it in searches or FAQs.

View Replies!   View Related
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.

View Replies!   View Related
Days & Hours B/t Two Dates & Times
I canít figure out why this formula is not working. I am trying to alter it a little, but I still think it should work. Here is what I am trying to do. I am looking to calculate the time difference between two work projects, but exclude time when the office is closed. So someone starts a project at 2pm and finish 10am the next day it will show a result of 4 hours because the office closes at 5.

Here is the formula. It is the time formula from ...

View Replies!   View Related
Convert Decimal Minutes & Seconds To Total Seconds
How can I Convert Decimal Minutes & Seconds To Total Seconds?

Here is the sample

View Replies!   View Related
Copyright © 2005-08, All rights reserved