+ Reply to Thread
Results 1 to 5 of 5

Sort and rank data based on dynamic criteria w/ duplicates 1 formula desired instead of 2

  1. #1
    Registered User
    Join Date
    08-15-2017
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    2

    Sort and rank data based on dynamic criteria w/ duplicates 1 formula desired instead of 2

    Hello,
    I have a large amount of dynamic data that I'd like to sort to always have the top 10 projects displayed on a dashboard. I created a document with fake data to see what formula would allow me to sort and rank based on criteria. I've been able to accomplish this with two formulas but I wonder if it can be done in one. I will have duplicate data but the names will always be unique. In the actual file, the first and last rows of the range need to use the named cells data_row_firstW and data_row_lastW so that the range of data for a host of formulas can be updated with ease. I haven't figured that part out yet. See second picture.


    The screenshot is below:
    Capture.PNG

    The formulas are
    In W3: =IFERROR(INDEX($B$2:$B$22, SMALL(IF(ISNUMBER((SEARCH($X$2,$E$2:$E$22))*(SEARCH($Y$2, $D$2:$D$22))),ROW($B$2:$B$22)-MIN(ROW($B$2:$B$22))+1,""), ROW(A1))),"")

    In X3: =LARGE($W$3:$W$7,ROW(1:1))

    In Y3: =IF(LEN(X3),INDEX($C$2:$C$996,SMALL(IF($B$2:$B$996=X3,ROW($1:$993)),COUNTIF(X3:X$5,X3))),"")

    Any help would be appreciated!!!

    Capture2.PNG

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sort and rank data based on dynamic criteria w/ duplicates 1 formula desired instead o

    Hi avee, welcome to Excel Forum! As no one wants to copy data from a picture, may I suggest you upload the workbook from which it came.
    This will speed up the solution process. (Remove any sensitive or extraneous info first.)

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now just Browse for your file, then click Upload. Simple!
    Last edited by leelnich; 08-15-2017 at 10:24 PM.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sort and rank data based on dynamic criteria w/ duplicates 1 formula desired instead o

    ...Never heard back, so I faked some data. This is defined as a TABLE in the attached workbook, which should take care of your dynamic-range issue.
    Paste this in X3 and copy down:
    Please Login or Register  to view this content.
    (AGGREGATE(14,6 mimics the LARGE function, but can ignore errors, and handle arrays without special entry.)

    Paste this in Y3 and copy down:
    Please Login or Register  to view this content.
    Now copy X3:Y7 and paste in AA3.

    Row\Col
    B
    C
    D
    E
    W
    X
    Y
    Z
    AA
    AB
    1
    Score Name Program Status
    2
    47
    Bob2 Mercury tbd Active WCF Active Mercury
    3
    620
    Bob3 WCF Active
    732
    Bob7
    361
    Bob16
    4
    222
    Bob4 Mercury Active
    688
    Bob17
    222
    Bob4
    5
    660
    Bob5 WCF Active
    660
    Bob5
    197
    Bob15
    6
    205
    Bob6 Mercury tbd
    658
    Bob9
    127
    Bob20
    7
    732
    Bob7 WCF Active
    658
    Bob13
    74
    Bob12
    8
    400
    Bob8 WCF tbd
    9
    658
    Bob9 WCF Active
    10
    644
    Bob10 WCF Active
    11
    139
    Bob11 Mercury tbd
    12
    74
    Bob12 Mercury Active
    13
    658
    Bob13 WCF Active
    14
    518
    Bob14 WCF tbd
    15
    197
    Bob15 Mercury Active
    16
    361
    Bob16 Mercury Active
    17
    688
    Bob17 WCF Active
    18
    554
    Bob18 WCF Active
    19
    475
    Bob19 WCF Active
    20
    127
    Bob20 Mercury Active
    21
    637
    Bob21 WCF Active
    22
    625
    Bob22 WCF Active

    Please click the Add Reputation star below any helpful posts, and use Thread Tools (up top) to mark your thread as SOLVED once you have your answer. Thanks!-Lee
    Attached Files Attached Files
    Last edited by leelnich; 08-15-2017 at 10:59 PM.

  4. #4
    Registered User
    Join Date
    08-15-2017
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    2

    Re: Sort and rank data based on dynamic criteria w/ duplicates 1 formula desired instead o

    Thank you Leelnich!! I appreciate your help and I will remember to add the excel file attachment next time.
    Last edited by avee; 08-16-2017 at 02:57 PM.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sort and rank data based on dynamic criteria w/ duplicates 1 formula desired instead o

    You're most welcome! If complete, please mark your thread as SOLVED (Thread Tools up top). Thanks -Lee

    Please click the Add Reputation star below any helpful posts, and use Thread Tools (up top) to mark your thread as SOLVED once you have your answer. Thanks!-Lee

+ 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-13-2017, 05:45 PM
  2. [SOLVED] Formula to eliminate duplicates in Rank values in a dynamic range
    By bungaree in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-14-2016, 08:23 PM
  3. assistance with match and rank order formula based on multiple criteria
    By OSepulvedaIII in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-18-2016, 06:21 AM
  4. Rank formula based on a exclusion criteria.
    By Jabba69 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-08-2014, 08:39 AM
  5. Formula to Index, Match, Rank, and Sort a Dynamic Range of Values
    By AustinLe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-14-2014, 03:49 AM
  6. FORMULA TO RANK data in the order 1,2,3,... and make it dynamic
    By SYLVIUS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-20-2014, 05:07 AM
  7. [SOLVED] Rank Data based on Criteria
    By vicor0509 in forum Excel General
    Replies: 3
    Last Post: 04-27-2012, 10:24 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