+ Reply to Thread
Results 1 to 2 of 2

Macro to convert decimal to hours

  1. #1
    Registered User
    Join Date
    04-13-2015
    Location
    Luanda
    MS-Off Ver
    Vista
    Posts
    43

    Exclamation Macro to convert decimal to hours

    Hi guys
    help
    I need a macro to convert a cell number into hours without formating the cell as time or [h]:mm


    the one bellow is the what i have, but i don't want it anymore, because with this i have to format the cell as [h]:mm, to get the convertiong in hours.
    but i need one function or macro, that won't be need to change the formating of the cell and i will be able to insert numbers above 100, and get it as 100:00 (not 04/01/1900 04:00:00)

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Macro to convert decimal to hours

    Hi,

    It is not clear what your input format is or what you want your output format to be. I assumed the input was a number such as 5.15. You might want to try the following which outputs the value as text.
    Please Login or Register  to view this content.
    If you need additional help, I suggest you upload a sample Workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Lewis

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to convert decimal into days, hours and minutes?
    By tony. in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-14-2020, 10:12 PM
  2. [SOLVED] Convert Decimal Hours into Hours and Minutes in HH.mn format
    By Cortlyn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2013, 03:48 PM
  3. [SOLVED] Convert [h]:mm to decimal hours
    By edgarrm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2012, 03:13 AM
  4. Convert Decimal Hours into Minutes
    By hiddenone in forum Excel General
    Replies: 6
    Last Post: 03-30-2011, 02:00 PM
  5. Convert 32:15 minutes to 32.25 decimal hours
    By karstens in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2006, 03:08 PM
  6. Convert Hours to Decimal
    By dminkov in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2006, 06:45 AM
  7. Replies: 2
    Last Post: 03-05-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1