+ Reply to Thread
Results 1 to 19 of 19

It sets date format wrong when copy and paste

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: It sets date format wrong when copy and paste

    Quote Originally Posted by Aardigspook View Post
    Ah, sorry, I mis-read the problem (switching day / month is a common problem on here, so I jumped to that conclusion ).

    If you are starting from scratch (no dates in Excel yet) then format the sheet as text and use newdoverman's solution above.

    If you already have a lot of wrongly-formatted dates, try this:
    With the list of films in column A and (wrong) dates in column B, put this in C1 and drag down:
    Formula: copy to clipboard
    =IF (OR (YEAR (B1) < 2013, YEAR (B1) = YEAR (TODAY())),DATE( MONTH (B1), DAY (B1), 1), DATE (YEAR (B1), MONTH(B1), 1))

    Then format the cells with the custom format 'mm/yy' (without the inverted commas).
    That should do what you want - sorry for my earlier misunderstanding.

    Sorry it's taken me a while to reply - I kept being blocked for a technical reason I've now been told how to get round.
    The formula won't work. It turns out all years into 2015.

  2. #2
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: It sets date format wrong when copy and paste

    I uploaded the file.

    Here;
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: It sets date format wrong when copy and paste

    Quote Originally Posted by zanshin777 View Post
    I uploaded the file.
    I'll have a look at it and see what I can do - bit busy tonight so it might not be until tomorrow sometime.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. Copy Paste each 10 sets Filtered data to different cell desstination
    By pojako08 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-23-2014, 11:51 AM
  2. Copy and paste under the last used row - what's wrong with this code?
    By luke1908 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 04:10 PM
  3. How to copy and paste date but maintaining the date format using macros
    By Wanjama in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-16-2014, 09:03 AM
  4. [SOLVED] Create sets of data (repetitive copy-paste)
    By edarevalo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2012, 04:56 AM
  5. Copy two data sets, filter it and paste to summary sheet
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-03-2012, 07:15 AM
  6. Date format macro and copy paste
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2010, 11:08 AM
  7. Copy-paste from csv to xls macro > wrong date format
    By Gero in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2009, 06:12 AM

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