+ Reply to Thread
Results 1 to 6 of 6

Automatic sorting names based on numerical data

Hybrid View

  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 also in another sheet. I have the currently used the following formula =IF(G6=8.5,A6,0). This has done what I would like but there are 0's in between the names. I'd like no zero's and no spaces between names. I have attached my document, 'Test' is what I tried to do and 'What i would like' is how I'd like it to appear. I know how to use formulas but I think this may require more technical advice. Any advice would be greatly appreciated. Thank you
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Automatic sorting names based on numerical data

    Hi Littlesimon,

    Welcome to the forum!

    Try this formula =IF($G6=P$5,$A6,"")

    Regards,
    AM

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

    Hi AM,
    Thank you for your help. If I implemented this correctly it returns a blank cell if the criteria is not met. This is a step closer to what I am after. Is there any way to sort the columns into alphabetical order automatically or remove the blank cells in between cells automatically or copy it to another location without the blank cells in between? Thanks again for your assistance.

  4. #4
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Automatic sorting names based on numerical data

    Hi,

    Please check the attached file. The formula
    {=IF(ROWS(AL$6:AL6)>COUNTA(P$6:P$29)-COUNTBLANK(P$6:P$29),"",INDEX(P$6:P$29,SMALL(IF(P$6:P$29<>"",ROW(P$6:P$29)-ROW(P$6)+1),ROWS(AL$6:AL6))))}
    is applied in column AL:BE.

    Edit: This is a array formula hence use CTRL + SHIFT + ENTER

    Regards,
    AM
    Last edited by ashishmehra2010; 01-09-2015 at 06:15 AM.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Automatic sorting names based on numerical data

    P6=IFERROR(INDEX($A:$A,SMALL(INDEX(($G$6:$G$29<>P$5)*10^10+ROW($G$6:$G$29),0),ROW(1:1))),"")
    Try this in P6 and copy across

    Change the Range according to your needs
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    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 nflsales,

    Your idea worked to do exactly what I wanted in less steps. My only problem is I would like to bee able to see the results for the 3 different times of year 'end 2013', 'mid 2014' and 'end 2014' on the same page. In it's current form it takes up quite a bit of space on the page as there are numerous cells that return 0's under the names. Would there be any way of doing this? I have attached another document with what I am after. These may also have to be copied to other sheets.

    Any help is greatly appreciated.

    Simon
    Attached Files Attached Files

+ 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] automatic replace sheet names based on new cell text (within defined range)
    By Robert1311 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-08-2014, 05:37 AM
  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