+ Reply to Thread
Results 1 to 2 of 2

How sort date (mm/yyyy) by year

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    32

    How sort date (mm/yyyy) by year

    Hi all,

    I have worksheet of data that I need to sort by year then month. Currently when I try to sort the data by data excel sorts by the month then year. Does anyone know how to reverse this so the dates are sorted by year then month???

    Thanks!
    Last edited by Joe Walsh; 08-13-2013 at 10:27 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How sort date (mm/yyyy) by year

    1st, check that your dates are actually dates and not text that looks like dates - use =isnumber(cell-ref). If they are text, depending on how they were entered, you may be able to use text2columns to convert them

    Keep in mind that a date in excel is a 5-digit number representing how many days have passed since 1/1/1900, so sorting them will work, no matter what format they are in
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 10
    Last Post: 06-13-2017, 09:49 AM
  2. [SOLVED] Sort worksheets by date (MMM YYYY)
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-10-2013, 07:08 AM
  3. Replies: 7
    Last Post: 11-18-2012, 02:28 PM
  4. [SOLVED] Imported data contains strings dd.mm.yyyy how can I convert to date format dd/mm/yyyy inVB
    By Boormo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-05-2012, 05:48 PM
  5. opening excel file -> date format problem: DD/MM/YYYY vs MM/DD/YYYY
    By yung in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2005, 09:06 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