+ Reply to Thread
Results 1 to 4 of 4

automatic sorting names based on numerical data

  1. #1
    Registered User
    Join Date
    01-08-2015
    Location
    Australia
    MS-Off Ver
    Mac 2011
    Posts
    75

    Question automatic sorting names based on numerical data

    Hi,

    I am trying to create an assessment spreadsheet. Next to a name, a mark is given in a number format. Depending on what mark is given, it will then place the name under the corresponding mark heading in alphabetical order. I'd like this to happen in the same sheet and I would also like to know how make this copy to another sheet.

    I understand some formulas but don't know much about VBA or Macros but I wondered if these would allow me to achieve my end goal more effectively or if using formulas is best.

    Another user suggested using =IFERROR(INDEX($A:$A,SMALL(INDEX(($G$6:$G$29<>P$5)*10^10+ROW($G$6:$G$29),0),ROW(1:1))),"")
    This works well although it leaves cells that = 0 in the rows underneath meaning you can't have another set of results underneath that is close enough to compare.

    It would make more sense by looking at the example attached. The 'suggestion' sheet is what the other user suggested and 'what I would like' explains itself.

    Any help would be greatly appreciated.

    Thanks
    Attached Files Attached Files

  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,938

    Re: automatic sorting names based on numerical data

    This ARRAY formula will give you the basis of what you want, I just need to fiddle with it to get the month/date you want

    =IFERROR(INDEX($A$6:$A$36,SMALL(IF($G$6:$G$36=P$5,ROW($A$6:$A$36)-5),ROWS($A$1:A1))),"")
    copied down and across.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Would it be possible to put the main part of the heading (the subject) in its own row, and the the date part in a 2nd row? This will make things a bit easier for me. If that is not practical, I can work around it
    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

  3. #3
    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,938

    Re: automatic sorting names based on numerical data

    This ARRAY formula will give you the basis of what you want, I just need to fiddle with it to get the month/date you want

    =IFERROR(INDEX($A$6:$A$36,SMALL(IF($G$6:$G$36=P$5,ROW($A$6:$A$36)-5),ROWS($A$1:A1))),"")
    copied down and across.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Would it be possible to put the main part of the heading (the subject) in its own row, and the the date part in a 2nd row? This will make things a bit easier for me. If that is not practical, I can work around it

  4. #4
    Registered User
    Join Date
    01-08-2015
    Location
    Australia
    MS-Off Ver
    Mac 2011
    Posts
    75

    Question Re: automatic sorting names based on numerical data

    Thanks for your help Ford,

    If I understand correctly '5SL Writing Summary' and 'Dec 2013' could be in different rows, that wouldn't matter at all.

    After putting in your formula I'm not sure that it solves my issue of having cells in the rows below all the names that contain a formula or 0 therefore I'm unable to have another set of results closely underneath like the example of what I want. It may have been the way that I input the data but under the 0 heading, the first 6 cells returned 0.

    Thanks for you assistance

    Simon

+ 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. Automatic sorting names based on numerical data
    By Littlesimon in forum Excel General
    Replies: 5
    Last Post: 01-15-2015, 05:45 PM
  2. [SOLVED] Sorting numerical data in a pivot table
    By katieshields in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-25-2013, 04:20 AM
  3. Sorting Numerical data..
    By Hodged in forum Excel General
    Replies: 4
    Last Post: 11-06-2006, 06:18 AM
  4. Replies: 3
    Last Post: 01-17-2006, 10:10 AM
  5. Having trouble sorting numerical data from SQL analysis cube
    By Andy S. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-17-2006, 10:10 AM

Tags for this Thread

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