+ Reply to Thread
Results 1 to 4 of 4

Date format issue =Right

Hybrid View

  1. #1
    Registered User
    Join Date
    09-20-2018
    Location
    Oklahoma City
    MS-Off Ver
    2016
    Posts
    9

    Date format issue =Right

    Issue:
    I have a data point that is a date but is not in date format. I need the data point to be in day/month/year format.

    I have had some luck using the following formula to parse the data but it is not getting me all the way.
    =RIGHT(I2, LEN(I2)-4) &"-"& LEFT(I2,4)&""

    If I use the above command I will get the following output 0201-1900 but I would like to have 01/02/1900 or even 01-02-1900

    My data point looks like so 80999798 then I have to say =99999999-80999798 and I get 19000201.
    If i click on the date format in excel I get ##### so I was looking for a formula that I could use to convert this to 01-02-1900

    Any ideas?

    Chris

  2. #2
    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: Date format issue =Right

    how about this...
    =RIGHT(I2,2)&"/"&MID(I2,5,2)&"/"&LEFT(I2,4)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Date format issue =Right

    Please try and change date format to dd-mm-yyyy
    =--TEXT(I2,"0000-00-00")

    or
    =TEXT(--TEXT(I2,"0000-00-00"),"dd-mm-yyyy")
    =TEXT(RIGHT(I2,4),"00-00-")&LEFT(I2,4)

  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: Date format issue =Right

    If the above suggestions dont work for you, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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] Date format issue
    By manish Joshi07 in forum Excel General
    Replies: 14
    Last Post: 01-25-2016, 06:50 AM
  2. Replies: 4
    Last Post: 04-29-2015, 08:36 AM
  3. [SOLVED] Issue with date format when comparing two date values (I'm in Australia)
    By aaron.irvine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2013, 01:13 AM
  4. Date format issue
    By skhari in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2012, 02:08 AM
  5. Date format issue
    By LadyDoe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-17-2005, 04:00 AM
  6. Date format issue
    By DanielHurtubise in forum Excel General
    Replies: 2
    Last Post: 09-21-2005, 02:05 PM
  7. Date Format Issue
    By Mikeice in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2005, 12:05 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