+ Reply to Thread
Results 1 to 10 of 10

Change Date Format

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Change Date Format

    Hello,

    I need to be able to change the date format from DD/MM/YY to MM/DD/YY. In the past I would have used a Mid&left&right formula. The issue that I am having is that the column has dates of 3/4/14 and 25/11/12 in the same column so I am unable to use the same Mid&left&right formula because of the extra spaces.

    Any thoughts on how to rearrange these dates would be a great help.

    Thank you

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change Date Format

    Would it not be simpler to change the numberformat of the cells, to "mm/dd/yy" ?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Re: Change Date Format

    The issue is that I am exporting data from other data systems and a formula would simplify the processes.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Change Date Format

    @mma3824

    how, with an macro?

    if so, add the given solution to the macro.

    if not, you could select the whole column and change the format of the whole column at once.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Re: Change Date Format

    Format Date.xlsx

    I have attached the document that I am working with. The columns that I need formatted are columns I and S.

    Thank you.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Change Date Format

    J6= trim(I6)*1

    and format as mm/dd/yy

    See the attache file.

    I added an helpcolumn in column J.
    You can add iferror on the formula to prefend the failure.

    j6=iferror(trim(I6)*1,"")
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Re: Change Date Format

    OK, it is now adding a zero in front of the single digit day. If I am following I now need to run the Mid&left&right format to take from the International date format to the US date format? Because I'm not seeing the date format change from the DD/MM/YY format.

  8. #8
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Change Date Format

    Quote Originally Posted by mma3824 View Post
    The issue is that I am exporting data from other data systems and a formula would simplify the processes.
    Lemmee clarify something here:
    1) Are you exporting data FROM another data system TO excel,
    2) Or are you taking data FROM excel and exporting it TO another system?

    If (1), select the column (I for example), then Data Ribbon => Data Tools Panel => Text-to-Columns Button
    Next => Next => Change "column data format" from "General" to "Date", and change the dropdown to "MDY" => Finish

    Repeat on column S

    You're done.

    If it's (2),
    Then it depends on what system you're exporting to: if it's still something in the Microsoft garden (eg, an Access database or something), then I would suggest doing exactly the same thing.

    Moving your dates to the daycode serial number and then changing the format to display how you want it to look is probably better for you.

    Well, even if you need to output a text string, using the serial code as a helper column would let you simply concatenate, for example:

    T3 = DATEVALUE(S3)
    U3 =TEXT(MONTH(T3),"00") &"/"& TEXT(DAY(T3),"00") &"/"& RIGHT(YEAR(T3),2)

    then pull down

  9. #9
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Re: Change Date Format

    The first one worked. Great!!! Thank you!

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Change Date Format

    Please Login or Register  to view this content.
    You have several reply on your question.

    In that case it is usefull to add to who you are reply-ing.

    If it is not me, what about the solution in #6.

+ 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 formula - Change Format to YYYYMMDD from Exported Format
    By haleakala17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2014, 03:22 PM
  2. [SOLVED] help on vba code to change the error date format as standard format mm/dd/yyyy
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2013, 01:10 AM
  3. Excel:How change the textbox format from text to date format?
    By inpetto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2013, 08:23 AM
  4. Not able to change date format into proper excel date format
    By excel5111987 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2011, 08:19 AM
  5. Userform date format reverting back to us format on change event
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2009, 12:34 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