+ Reply to Thread
Results 1 to 3 of 3

Weird compatability issue with dates from old version of Excel to new 2013 version

  1. #1
    Forum Contributor
    Join Date
    11-02-2003
    Location
    Birmingham, UK
    MS-Off Ver
    Office 365
    Posts
    127

    Weird compatability issue with dates from old version of Excel to new 2013 version

    I hope I can explain this problem ok. I would be grateful if someone could point me in the right direction please ?

    I get daily reports from a manufacturing system software in Excel format that includes a column of dates which are formatted as General cells. These are big reports that I use autofilter to sift through and review. However the dates are formatted in such a way that the autofilter doesn't group the dates and months together. Instead they appear in the autofilter drop-down in strict numerical order like this...

    dates.jpg

    I've tried to convert this spreadsheet to an .xlsw, I've also tried to format the column as a Date column to no avail.

    The only thing that seems to work is to individually F2 each date cell, then press ENTER. This has the effect of making the date change in some way which the autofilter can make sense of. I did the F2 ENTER on a few cells which worked as follows :-

    Dates2.jpg

    Is there an easy way to fix all these dates ? Or is there a piece of VBA code that I can set to run from the top of the column and do the F2 ENTER routine on each cell until it reaches the last cell ?

    If it helps to explain, here is a snapshot of the dates with some of them F2 ENTER'd

    dates3.jpg
    Terry

    "... I thought I was a power user of Excel until I came onto these boards..."

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Weird compatability issue with dates from old version of Excel to new 2013 version

    Hey Terry,

    This looks like some of your dates are text while others are numbers. If you add zero to the text dates it will turn them into numbers and they will become dates (I hope).

    To do that, there is this easy method. You put a zero in a blank cell somewhere on your sheet and copy it to the clipboard using Ctrl+C. Then select the whole column with your dates in them and then Right Click on the selected column. Then click on "Paste Special" from the right click dropdown and click on "Operation Add" radio button. Then OK. This will add zero to all the stuff in your date column and change them to numbers instead of text (I hope).

    See http://www.contextures.com/xlDataEntry03.html for more info.

    Let me know what happens.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-02-2003
    Location
    Birmingham, UK
    MS-Off Ver
    Office 365
    Posts
    127

    Re: Weird compatability issue with dates from old version of Excel to new 2013 version

    Thank you Marvin that worked a treat in the end I had to add an extra step in there to format the column as 'date'...

    With these reports I have a macro that I've recorded which finesses the formatting and puts in a pivottable for me. I'll record the above steps and add that in as well.

+ 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. Replies: 1
    Last Post: 04-01-2015, 08:10 AM
  2. [SOLVED] how torun macros in 2013 excel version
    By heiderayos in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-05-2015, 12:12 PM
  3. Get code that works on excel version 2007 to work on version 2010
    By Agent1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2014, 01:23 AM
  4. excel version 2013 and 2007
    By dealer in forum Excel General
    Replies: 3
    Last Post: 06-10-2014, 08:22 AM
  5. [SOLVED] Date autofilter problem - Excel 2013 version
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-21-2014, 12:10 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