+ Reply to Thread
Results 1 to 7 of 7

Excel Time Formatting Issue

Hybrid View

  1. #1
    Registered User
    Join Date
    08-03-2018
    Location
    germantown, md
    MS-Off Ver
    mac
    Posts
    18

    Excel Time Formatting Issue

    I am downloading an excel workbook online that posts MINUTES like this (35:44:00). I try to use V-look up to copy this time to another sheet, however it's not giving me this exact number (which I need). When I do the Vlook up, its giving me the value of the time. I tried to copy and paste values only in the column-didn't work. I tried using different format cell options, the problem persists.

    Does anyone know how I can copy the minute stamp on a sheet without it changing or without me having to manually type the minutes for each line in the workbook?

    Any help would be appreciated, thank you.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,455

    Re: Excel Time Formatting Issue

    Copy Paste and custom format as mm:ss:00 ?

  3. #3
    Registered User
    Join Date
    08-03-2018
    Location
    germantown, md
    MS-Off Ver
    mac
    Posts
    18

    Re: Excel Time Formatting Issue

    unfortunately that didnt work either

  4. #4
    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
    52,946

    Re: Excel Time Formatting Issue

    What you need to understand about dates and times in excel is…

    a date is just a number representing the number of days passed since 1/1/900...and then formatted in a way that we recognize as a date. So, for instance, today (Wed 11 Mar 2020) is actually 43901

    Time is actually a decimal part of 1 (day), so 06:00 AM is 0.25, 12 noon is 0.5 and 18:00 (or 6 PM) is 0.75

    With that said, you will never find eg 35:44:00,you would need to search for something like 0.488888889

    However, Time can go out to a lot of decimal places, your sample is actually 0.488888888888889000000 (excel only goes out to 16 significant decimals though)
    Soooo now you have the problem of deciding on what level of accuracy you want, then rounding your time values to somehting you can use in a vlookup
    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

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,455

    Re: Excel Time Formatting Issue

    Post a sample sheet ( see yellow banner)

  6. #6
    Registered User
    Join Date
    08-03-2018
    Location
    germantown, md
    MS-Off Ver
    mac
    Posts
    18

    Re: Excel Time Formatting Issue

    I attached an example.
    Attached Files Attached Files

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,508

    Re: Excel Time Formatting Issue

    if you want it the same, use custom format and [h]:mm:ss
    but just because they didn't look the same they are, if you look at B2 it is 1/1/1900 1:44:00 AM and the vlookup formatted as general returned 1.072 but using built in date format of 3/14/12 1:30 PM (from the format list) it returns 1/1/00 1:44 AM which looks much closer to what is in B2 when you click on the cell.
    and if you use the custom format of mm/dd/yyyy hh:mm:ss it will look almost identical to what is in B2 but it will not show as 25:44:00 unless you use the format at the top of this post.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. Concatenate Date and Time - Issue with Formatting
    By pluto_ljd in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-20-2017, 03:47 PM
  2. Formatting issue with time
    By hatemail13 in forum Excel General
    Replies: 4
    Last Post: 08-21-2013, 02:55 AM
  3. Cell formatting issue for time spent
    By Michael Perry in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-12-2013, 11:50 AM
  4. [SOLVED] Excel 2010 - Extracting hour value from HH:MM:SS time - formatting issue
    By asimbig in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2013, 06:47 AM
  5. Excel formatting issue--- NEED HELP
    By seo_jared in forum Excel General
    Replies: 1
    Last Post: 01-23-2013, 08:05 PM
  6. [SOLVED] time formatting issue
    By crandell84 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2012, 03:04 PM
  7. Time formatting issue
    By Tony Vargo in forum Excel General
    Replies: 3
    Last Post: 06-16-2009, 06:46 AM

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