+ Reply to Thread
Results 1 to 5 of 5

Order increasing month / year

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Order increasing month / year

    Hello, I would kindly like your help in ordering the list in the attached file in ascending order by month/yera.
    Column D dates
    in column Q I grouped them by month but, as you can see, they come in a messy way
    I would like them to be sorted according to the numbering you see in column R
    So in Q2 it should be April 2019 and not June 2019
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,900

    Re: Order increasing month / year

    Why not just sort on column D?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Order increasing month / year

    For Excel2010
    Please try at Q2
    =IFERROR(AGGREGATE(15,6,$D$2:$D$99/(--TEXT($D$2:$D$99,"yymm")>AGGREGATE(14,6,--TEXT(Q$1:Q1,"yymm"),1)),1),"")

    For Excel2007
    U2
    =IFERROR(SMALL(IF(--TEXT($D$2:$D$99,"yymm")>(MAX(--TEXT(U$1:U1,"yymm"))),$D$2:$D$99),1),"")
    and Press Ctrl+Shift+Enter
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Order increasing month / year

    Ciao Berna11,

    a very similar approach to Bo_Ry's one (ความคิดที่ดี!)

    =IFERROR(TEXT(AGGREGATE(15,6,D$2:D$100/(DATE(YEAR(D$2:D$100),MONTH(D$2:D$100);1)>Q1+1),1),"MMMM YY"),"")

    From an Italian Excel version should be:

    =SE.ERRORE(TESTO(AGGREGA(15;6;D$2:D$100/(DATA(ANNO(D$2:D$100);MESE(D$2:D$100);1)>Q1+1);1);"MMMM AA");"")

    Warm Regards
    Last edited by canapone; 05-05-2019 at 06:24 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  5. #5
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Order increasing month / year

    Thank you all for your help.
    *your Bo_Ry and Canapone solutions
    both work properly
    Thanks again a greeting.

+ 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] Day, Month and Year entries in order of typing them.
    By ph1l in forum Excel General
    Replies: 9
    Last Post: 09-10-2016, 10:46 AM
  2. =DATE(YEAR, MONTH, DAY) stop month increasing.
    By oneblondebrow in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2016, 09:32 AM
  3. Running Totals from 24 hours to month, month to year without year decreasing
    By Safetyintern in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2015, 01:13 PM
  4. Graphing dates by month/year with 2 bars per month/year
    By Ellpoyohlokoh in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-22-2014, 05:25 AM
  5. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  6. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 AM
  7. Add Worksheet in Order "Month Year" format
    By dziw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2006, 12:11 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