+ Reply to Thread
Results 1 to 18 of 18

Not able to cahnge Date format

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Not able to cahnge Date format

    Hi
    I am not able to change date format.
    Like I need to convert it as yy/mm/dd format
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Not able to cahnge Date format

    hi narendrabr, try:
    =DATE(MID(A2,7,4),MID(A2,4,2),LEFT(A2,2))

    or if your computer settings is D/M/Y, then:
    =LEFT(A2,10)+0

    in both cases, just format to what you want

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

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

    Re: Not able to cahnge Date format

    =DATE(MID(A2,7,4),MID(A2,4,2),LEFT(A2,2))
    and copy down the column
    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
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Not able to cahnge Date format

    Not possible from Format cells-Date/custom ?

    Thanks!

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Not able to cahnge Date format

    Hi narendrabr

    Select your data > Text to Columns on the home tab > Delimited > Next > Next > Select: Date > Finish

    Format the cells as in your original post: yy/mm/dd
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Not able to cahnge Date format

    Hi I am doing this but not changing..

    Thanks

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Not able to cahnge Date format

    Hi

    I seem to have no issue with converting them to dates & times. See the attached file.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Not able to cahnge Date format

    Yes doing the same but not changing.

    Thanks

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Not able to cahnge Date format

    Try selecting DMY for the column data format on the 3rd step of Data>Text to columns...
    If posting code please use code tags, see here.

  10. #10
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Not able to cahnge Date format

    I have tried Format cells and Text to columns but nothing works.

    Thanks

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Not able to cahnge Date format

    How exactly did you try Data>Text to columns...?

    Also, how did the formulas posted not work?

  12. #12
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Not able to cahnge Date format

    If I remove HH:MM:SS( 04:37:14) from date I can change format but if i have (24-03-2012 04:37:14) I cant.

    Thanks

  13. #13
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Not able to cahnge Date format

    Even when I use the following formula and format the cells I get no problem with the workbook you uploaded.
    Formula: copy to clipboard
    =DATEVALUE(LEFT(A2,10))+RIGHT(A2,8)


    Is the data you are working with, the same as the file you uploaded!

  14. #14
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Not able to cahnge Date format

    Regional setting is US.

    Do we have to use this formula to remove the time?


    =DATEVALUE(LEFT(A2,10))+RIGHT(A2,8)

    I am using the same sata/

    Thanka

  15. #15
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Not able to cahnge Date format

    what is your date format in regional settings?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  16. #16
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Not able to cahnge Date format

    24-03-2012 is uk format thats probably your problem
    try
    =DATE(MID(A1,7,4),MID(A1,4,2),LEFT(A1,2))+RIGHT(A1,8) as was suggested in post #3
    Last edited by martindwilson; 03-13-2013 at 09:42 AM.

  17. #17
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Not able to cahnge Date format

    Ok.My question is not possible from format cells or text to columns functions in excel?

    Thanks

  18. #18
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Not able to cahnge Date format

    you cant format that as your regional settings wont recognise the date so its treated as text
    but
    you could try
    text to columns.fixed width
    choose dmy for the first column click finish
    column a will have dates col b times

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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