+ Reply to Thread
Results 1 to 7 of 7

Using IFERROR to sort data into groups - not working

  1. #1
    Registered User
    Join Date
    05-02-2022
    Location
    Australia
    MS-Off Ver
    MS365
    Posts
    3

    Using IFERROR to sort data into groups - not working

    I am trying to sort the data into lists according to the assigned "group" A,X,Y,Z

    I copied the formula from the internet so it may have lost something in translation...

    =IFERROR(INDEX($B$1:$B$200,AGGREGATE(15,6,1/($A$1:$A$200=$E$2)*(ROW($A$1:$A$200)-ROW($A$1)),ROW()-ROW($E$1))),"")

    It looks like it works but on closer inspection many numbers are missing or put in the wrong list...

    The ultimate goal is to sort the A invoices into batches of 30, then the X Y and Z into their own batches. There may be an easier way....?

    Any help would be appreciated!
    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,989

    Re: Using IFERROR to sort data into groups - not working

    Administrative Note:

    Welcome to the forum.

    Members will tailor the solutions they offer to the version (NOT a release number like 2012) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    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 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,989

    Re: Using IFERROR to sort data into groups - not working

    If you have MS365, then you can use this in E3 copied across:

    =IFNA(FILTER($B$2:$B$500,IFERROR($A$2:$A$500=E$2,0),""),"")
    Attached Files Attached Files

  4. #4
    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,989

    Re: Using IFERROR to sort data into groups - not working

    For pre-365 Excel, try this in E3 copied across and down:

    =IFERROR(INDEX($B$1:$B$500,AGGREGATE(15,6,ROW($2:$500)/($A$2:$A$500=E$2),ROW(1:1))),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-02-2022
    Location
    Australia
    MS-Off Ver
    MS365
    Posts
    3

    Re: Using IFERROR to sort data into groups - not working

    Thanks have done!

  6. #6
    Registered User
    Join Date
    05-02-2022
    Location
    Australia
    MS-Off Ver
    MS365
    Posts
    3

    Re: Using IFERROR to sort data into groups - not working

    Wow you make that look so easy! Thanks very much for your quick advice too

  7. #7
    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,989

    Re: Using IFERROR to sort data into groups - not working

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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: 4
    Last Post: 07-06-2020, 08:45 AM
  2. [SOLVED] VBA auto-sort not working when the "IFERROR" part of the formula is in effect
    By davo3286 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2019, 08:16 PM
  3. Replies: 26
    Last Post: 01-15-2016, 03:38 AM
  4. Sort Data into Groups
    By Agro12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2015, 06:58 AM
  5. Can't figure out how to sort groups of data
    By Sathed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2012, 11:51 AM
  6. Sort two different groups of data
    By darkjedi in forum Excel General
    Replies: 2
    Last Post: 02-09-2012, 05:12 PM
  7. Need to sort groups of data by name or date
    By mockturtle29 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-08-2011, 07:29 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