+ Reply to Thread
Results 1 to 13 of 13

Dates stored as Text and Values - convert entire column to date?

  1. #1
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Dates stored as Text and Values - convert entire column to date?

    I attached a spreadsheet of the problem column.

    It contains text dates ('01/07/2017') and actual dates (January 7, 2017).

    Goal - make entire column and values within it as dates

    The problem is no matter what I try - the text doesn't convert and/or read as a date.
    - I've tried left/mid/right permutations and the output reads '09/07/2917';
    - DATEVALUE = #VALUE
    - DATE = #VALUE
    - convert entire column to values using "text to columns"

    No luck.

    Help is appreciated; I posted in wrong forum and re-posted this in the general forum.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Dates stored as Text and Values - convert entire column to date?

    If you select the entire column A and goto Data=>texttocolumns, hit the next until you are able to select Date option, then click finish

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Dates stored as Text and Values - convert entire column to date?

    Text to columns works... but you need to select Date & MDY format at step 3.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Dates stored as Text and Values - convert entire column to date?

    It hasn't worked here, Glenn, just so that you know.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Re: Dates stored as Text and Values - convert entire column to date?

    Quote Originally Posted by Glenn Kennedy View Post
    Text to columns works... but you need to select Date & MDY format at step 3.
    This worked!

    I didn't realize MDY needed to be selected; I had DMY.

    Thank you

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Dates stored as Text and Values - convert entire column to date?

    Ah - that's what I did wrong - doh!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Dates stored as Text and Values - convert entire column to date?

    You have to select the right format. Once done, they'll appear formatted as per your regional settings: DD/MM/YYYY in EU, or MM/DD/YYYY in USA/Canada. You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  8. #8
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Re: Dates stored as Text and Values - convert entire column to date?

    Quote Originally Posted by Glenn Kennedy View Post
    Text to columns works... but you need to select Date & MDY format at step 3.
    When I put this in a pivot table, the dates still stagger:
    jan - dec (that were not text)
    followed by jan - dec (that were previously text).

    Even after making them the same - how does this happen?

  9. #9
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Re: Dates stored as Text and Values - convert entire column to date?

    Okay; I fixed it in multiple steps:
    - convert date (MDY)
    - Trim()
    - Paste values
    - Convert (general)

    Anyway to do this in one shot?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Dates stored as Text and Values - convert entire column to date?

    Explain why you needed the extra steps.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Dates stored as Text and Values - convert entire column to date?

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  12. #12
    Registered User
    Join Date
    08-30-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    2016 64b
    Posts
    92

    Re: Dates stored as Text and Values - convert entire column to date?

    I don't know why.

    It seems to yield same result now.

    We are all good - thanks again!

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Dates stored as Text and Values - convert entire column to date?

    OK!!

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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 dates to values
    By thedrinkerparadox in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-20-2017, 12:52 PM
  2. [SOLVED] Marco to convert numbers stored as text to numbers and dates stored as text to numbers
    By a2424 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-22-2014, 10:19 AM
  3. [SOLVED] How do I convert column of dates into column of date values?
    By jfm854 in forum Excel General
    Replies: 7
    Last Post: 12-09-2013, 04:06 PM
  4. [SOLVED] VBA to convert cell to text and ensuring 7 digit number all along in entire column.
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-19-2013, 09:35 AM
  5. Convert Excel cells stored as text to date and number coming from notepad
    By Fire_d in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2010, 12:34 AM
  6. [SOLVED] How do convert an entire column of text in Excel to all caps?
    By Carrie in forum Excel General
    Replies: 10
    Last Post: 03-17-2006, 07: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