+ Reply to Thread
Results 1 to 8 of 8

convert textvalue into date

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    convert textvalue into date

    Hello,

    I have a small problem. I like to convert a date coming from a database into numbers so that I can use the date in excel.

    The date is written as follows in a cell (excelsheet):06-02-2018 (must be text) I can't do anything with this notation in excel.
    Hope someone can help me!

    Rgds Robert

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: convert textvalue into date

    It's not clear, at least not to me, what the contents of the cell are.

    Are you saying that it is "06-02-2018", "06-02-2018 (...)", or "(...):06-02-2018 (...)"?

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: convert textvalue into date

    You can use: =DATE(RIGHT(A1,4), MID(A1,4,2), LEFT(A1,2)) if the date should remain stored as text in the initial column. Or you can simply record a macro to transform the column in dates with Text to Columns function.

  4. #4
    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: convert textvalue into date

    Try this
    where text is in cell A1

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

    Or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 02-09-2018 at 09:37 AM.
    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

  5. #5
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: convert textvalue into date

    Hi PaulM100, your formula works fine! Thanks very much

    Rgds, Robert

  6. #6
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: convert textvalue into date

    Hi , thanks for your reply. I was meaning "06-02-2018". But problem is already solved!

    Rgs Robert

  7. #7
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: convert textvalue into date

    Hi Alkey,

    Sorry I was not clear enough, |I should have left out the ":". I was not included in the textvalue! But problem is already solved. Thanks for your effort and time!

    Rgds, Robert

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: convert textvalue into date

    Quote Originally Posted by Robert1311 View Post
    I was meaning "06-02-2018".
    Alternatively, you can highlight the entire column > Data > Text to Columns > Next > Next > Date: DMY (or MDY if the date is June 2nd) > Finish

+ 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] Convert text date in to a date format excel can read
    By BC TIPPING in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-03-2017, 02:49 AM
  2. [SOLVED] Convert a Text String Date to Date Serial Number
    By herve73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2015, 10:53 AM
  3. Convert numbers appearing as a date into actual date in order to sort data
    By Santa1986 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2015, 12:56 PM
  4. convert calendar date ddmmyy to julian date yyyydd
    By imichalopo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2015, 01:47 AM
  5. [SOLVED] How to convert exported text date to desired date format with excel vba.
    By sktneer in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 10-03-2013, 01:08 AM
  6. Replies: 1
    Last Post: 03-31-2010, 05:03 PM
  7. Convert a julian gregorian date code into a regular date
    By Robert in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2006, 02:10 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