+ Reply to Thread
Results 1 to 13 of 13

Date convert

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    GREECE
    MS-Off Ver
    Excel 2010
    Posts
    44

    Date convert

    Hi all,

    I would like to convert the dates in the Sheet 1 into the format Month - Year so i can run a pivot Table.
    However when i do it some of the dates remain in the current format.

    Can you please support
    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 convert

    In the cells that wont change there is a space before the date. Remove the space in those cells and it should work
    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 Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Date convert

    Dates are numbers
    Your dates are a mixtures of numbers and text, ie some of your dates are not dates, e.g. A423

    in B2
    =A2+0
    Copy column B to column A

    Now format column A as you want.
    Delete column B
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    03-21-2013
    Location
    GREECE
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Date convert

    Hi,

    Also does not work, it worked for example CELL A2432 returns # value!

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

    Re: Date convert

    Both suggestions will work, however mine will take longer.
    With Special-K's suggestion, copy and paste. Do not cut and paste. Also, when you paste, select paste values.

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Date convert

    Quote Originally Posted by gmr4evr1 View Post
    Both suggestions will work, however mine will take longer.
    With Special-K's suggestion, copy and paste. Do not cut and paste. Also, when you paste, select paste values.
    Good point about the paste values!

    Must admit I'm not quite sure why the OP would need an entire list of dates for a year.
    What happens when they get updated? A better solution would be a start date in A2 followed by =A2+1 copied down.
    Last edited by Special-K; 03-23-2017 at 09:57 AM.

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

    Re: Date convert

    A better solution would be a start date in A2 followed by =A2+1 copied down.
    Another good point

  8. #8
    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
    44,063

    Re: Date convert

    1. i can see no extra space. 2. =A2+0 does not work for all cells. This is a bit heavy handed, but does work:

    =IF(ISERROR(A2+0),DATE(RIGHT(A2,4),LEFT(A2,FIND("/",A2)-1),MID(A2,FIND("/",A2)+1,2)),A2)
    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

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

    Re: Date convert

    I'm not sure now that it was a space issue. I checked again by double clicking in the cells that didn't change, then hit enter or clicked in the next cell and it changed to the format OP wanted. Not sure why it would work that way.

  10. #10
    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
    44,063

    Re: Date convert

    I had a similar odd issue over the last few days where a formula worked perfectly here, but not on the Poster's PC. Excel can be a bit odd sometime... for something that is supposed to be logical. Maybe it's a she....

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

    Re: Date convert

    lol....another good point

  12. #12
    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,939

    Re: Date convert

    Quote Originally Posted by Glenn Kennedy View Post
    I had a similar odd issue over the last few days where a formula worked perfectly here, but not on the Poster's PC. Excel can be a bit odd sometime... for something that is supposed to be logical. Maybe it's a she....
    Glenn sssshhhhh
    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

  13. #13
    Registered User
    Join Date
    01-13-2017
    Location
    Texas, USA
    MS-Off Ver
    Office 2016
    Posts
    2

    Re: Date convert

    try this also
    =TEXT(A2,"mmmm")&" "&"-"&YEAR(A2)

+ 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 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
  2. 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
  3. 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
  4. [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
  5. Convert Long Written Excel Date to Proper Date
    By DavidMichaelangelo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2013, 04:47 PM
  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