+ Reply to Thread
Results 1 to 4 of 4

Swap content in a single cell

  1. #1
    Registered User
    Join Date
    06-16-2016
    Location
    Maastricht, Netherlands
    MS-Off Ver
    Microsoft Office 2010
    Posts
    2

    Swap content in a single cell

    Hi guys,

    I have to create a huge database for tomorrow and I encountered a problem. I have a column of exam dates where half of the values is in date format. The other half is in 'general' format and written as mm-dd-yyyy. Now, I want to convert those 'general' texts to dd-mm-yyyy date format. Of course I checked online and I found several solutions that all didn't work. I think an 'easy' way out would be a function that just swaps the values from mm-dd to dd-mm.

    Example: I have here 08/20/2013. Excel does not recognise it as mm/dd/yyyy. If I change it to 20/08/2013 by hand, it recognises it! Since I have 10 databases with 5000 entries it would be awesome if someone could write me a little function to do just that. You'd save my presentation tomorrow!

    I use excel 2010.

    Greetings,
    Sleif

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Swap content in a single cell

    Welcome to the board.

    Select the column, Data > Text to columns, Next, Next, tick Date: DMY, press Finish.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-16-2016
    Location
    Maastricht, Netherlands
    MS-Off Ver
    Microsoft Office 2010
    Posts
    2

    Re: Swap content in a single cell

    Edit: I changed it to MDY, now it works! Thanks a lot!
    Love this place!

    Gr,
    Sleif
    Last edited by SLEIF; 06-16-2016 at 02:40 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Swap content in a single cell

    You're welcome.

+ 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] Alphabetically arrange content in a single cell
    By SASIURFREND in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2014, 12:18 PM
  2. Macro to copy cell content to a single column
    By lorean in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 10:51 AM
  3. Extract partial content from a single cell
    By mildredtpeabody in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-21-2013, 06:39 PM
  4. Copy Cell Text Only Content on single Click
    By Rabbitstew in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-20-2012, 01:48 PM
  5. Replies: 1
    Last Post: 09-21-2008, 07:24 AM
  6. Changing row content with single cell click
    By aussiemike in forum Excel General
    Replies: 2
    Last Post: 05-25-2006, 01:37 AM
  7. swap values in a single cell
    By Erronf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2005, 12:41 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