+ Reply to Thread
Results 1 to 6 of 6

Date and time format decimals

  1. #1
    Forum Contributor
    Join Date
    08-16-2009
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    109

    Date and time format decimals

    I have tried several methods of formatting but am stuck with the enclosed sample data.

    In col D I have some sample date data (12/02/2015 07:49:00) that is in an export file that I have received, if I copy the data to Col E (paste value) I get a decimal date like this (42047.3256944444) which incidentally looks like 42047.32569 in the cell E7.

    I would like to see the date and the time in two separate columns as shown in Green, any help appreciated.

    G
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Date and time format decimals

    Here is one way to do it, with a simple formula and formatting...
    Date and Time.xlsx
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor
    Join Date
    08-16-2009
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: Date and time format decimals

    Hi Tom,

    Many thanks, looks ok at first glance and sorry if I did not expand but if I copy the columns with formulas and paste (values) I still see the full string of date and time which then causes an issue when I try to filter the column (I just want to see the date in the filter and no time) , which was my next stage ( sorry I did not make this clear).

    Would appreciate any expansion on this.

    G

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Date and time format decimals

    Which column would you like to see the date in, and which column would you like to see the time in? In F and G, or E and F? I set it up for columns F and G. I attached another copy because I forgot to format column E on the first one.
    Date and Time.xlsx

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Date and time format decimals

    Please see this hope this works
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-16-2009
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: Date and time format decimals

    Many thanks.

    The INT formula does the job and allows the filter to work correctly, appreciate all your help.

    Just found this also . "A Date-Time serial number, with General formatting, shows up as an Integer.Fraction"

    C

+ 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. modify date time cell to an excel format date time
    By rileyp in forum Excel General
    Replies: 12
    Last Post: 03-24-2013, 08:39 PM
  2. [SOLVED] How do I convert imported date/time data to date/time format?
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 07:47 AM
  3. [SOLVED] Excel 2007 : how convert time in decimals to time format
    By pksreela in forum Excel General
    Replies: 8
    Last Post: 07-10-2012, 12:17 AM
  4. Total hours from decimals in time format
    By Squidge in forum Excel General
    Replies: 20
    Last Post: 08-05-2010, 03:04 AM
  5. Replies: 7
    Last Post: 09-08-2009, 06:00 AM

Tags for this Thread

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