+ Reply to Thread
Results 1 to 5 of 5

Reformat number to proper date using existing data

  1. #1
    Registered User
    Join Date
    01-04-2014
    Location
    Missoula, MT
    MS-Off Ver
    Excel 2007
    Posts
    1

    Reformat number to proper date using existing data

    I need help converting numeric data to proper dates. Example: a cell currently reads 100875 but I need it to display 10/08/1975.

    I've already found a VBA script that properly formats new data as you enter it (keying 1298 results in 1/2/1998), and I'm familiar with using =DATE(left,mid,right) to coerce Excel into spitting out a date in a certain format.

    The difficulty I'm having is that I need to make existing data display correctly, without adding another column to accommodate reinterpretation of said existing data through a formula. Essentially I'm looking to avoid having to re-key several thousand date entries.

    Any help is greatly appreciated.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Reformat number to proper date using existing data

    Do right click>>Format Cells>>Number>>Category>>Custom>>Under Type enter the Custom Formatting

    00"/"00"/"00

    Press Ok...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    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,048

    Re: Reformat number to proper date using existing data

    Hi and welcome to the forum

    If your existing data is in that format, Use the helper to convert the data, then copy/paste values those answers back over your original data - then delete the helper
    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

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Reformat number to proper date using existing data

    Or

    Using Formula

    In A1 Cell
    100875

    In B1 Cell
    =TEXT(TEXT(A1,"00-00-00"),"DD/MM/YYYY")

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Reformat number to proper date using existing data

    Quote Originally Posted by :) Sixthsense :) View Post
    Or

    Using Formula

    In A1 Cell
    100875

    In B1 Cell
    =TEXT(TEXT(A1,"00-00-00"),"DD/MM/YYYY")
    I agree with SixthSense, as this will give you dates instead of text. However, being dates in the American format, you would use =TEXT(TEXT(A1,"00-00-00"),"MM/DD/YYYY")

    Regards, David


    When you reply please make it clear WHO you are responding to by mentioning their name.
    If this has been of assistance, please advise. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.
    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

+ 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. Macro to reformat data in horizontal format to a proper Data table
    By hkaushal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2013, 08:47 PM
  2. Replies: 7
    Last Post: 10-12-2012, 09:53 AM
  3. Replies: 5
    Last Post: 03-20-2009, 01:01 PM
  4. How do I reformat my database from all uppercase to proper?
    By Princey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2006, 04:59 PM
  5. Reformat existing 4 digit number as hh:mm?
    By Carol Wolfe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-06-2005, 03:06 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