+ Reply to Thread
Results 1 to 8 of 8

Time Format

  1. #1
    Registered User
    Join Date
    11-10-2009
    Location
    manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    83

    Time Format

    Hi,

    I need again excel formula assistance and i know you guys always do.

    Attached is my sample file. I need to have a formula wherein the "Duration" column will be converted to decimal numbers. The problem is, there are numbers that supposed to be in mm:ss format but is read as hh:mm in the data. So, the other time in which in hh:mm:ss where treated as the same with mm:ss.

    I need to have a distinction that those seen mm:ss should not be treated as hh:mm.


    Looking forward again guys!


    Thanks.
    Marnie
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-10-2009
    Location
    manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Time Format

    Btw, the reason for this is to get those done less than 4hours.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,202

    Re: Time Format

    Try ...
    Please Login or Register  to view this content.
    Use: =ConvertTime(B2)

  4. #4
    Registered User
    Join Date
    11-10-2009
    Location
    manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Time Format

    hi, i am not that familiar with vb or macro. i already tried defining the len of the duration but unfortunately they have the same since the format were the same. it's just the format on how it shows that looks like 5 characters.


    Thanks

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Time Format

    Maybe this
    Enter in E2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    11-10-2009
    Location
    manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Time Format

    Thanks AlKey, but already tried that. The problem is there are time in hh:mm:ss that ends in 00sec.

    Thanks

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Time Format

    can you try this one kabayan.

    You have 2 formatting
    h:mm:ss -> this is "D8" for the formula =cell("format",B2)
    hh:mm -> this is "D9" for the formula =cell("format",B2)
    so if cell format is D9 convert it to mm:ss using Time function otherwise just get the original date from the cell reference


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ***I just don't know the effects on the other formatting you have in your data.
    Hope this is what you want.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Time Format

    there are numbers that supposed to be in mm:ss format but is read as hh:mm in the data.
    How would we know which is which, they all look valid to me?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] time sheet help, format TIME and formula based on the actual time entered.
    By bh mng in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-06-2016, 01:10 PM
  2. Format time from military time to standard time
    By Valencia0307 in forum Excel General
    Replies: 7
    Last Post: 06-01-2014, 11:15 AM
  3. [SOLVED] I want telephone numbers and time of any format to specific format
    By Latha Mani in forum Excel General
    Replies: 16
    Last Post: 01-11-2014, 09:58 AM
  4. Change format of lots of data cell to a time format
    By dazza67 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-24-2013, 03:24 PM
  5. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  6. Excel: How to convert time format into number format that can be added?
    By Frances Jones in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2012, 04:10 PM
  7. Display time in time format instead of decimal format
    By CasualVisitor in forum Excel General
    Replies: 5
    Last Post: 07-03-2009, 06:24 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