+ Reply to Thread
Results 1 to 12 of 12

RANKING Given Multiple Criteria

Hybrid View

watchouse RANKING Given Multiple... 03-16-2016, 12:54 PM
José Augusto Re: RANKING Given Multiple... 03-16-2016, 02:11 PM
watchouse Re: RANKING Given Multiple... 03-16-2016, 06:51 PM
José Augusto Re: RANKING Given Multiple... 03-16-2016, 07:10 PM
watchouse Re: RANKING Given Multiple... 03-17-2016, 07:03 AM
watchouse Re: RANKING Given Multiple... 03-17-2016, 07:12 AM
José Augusto Re: RANKING Given Multiple... 03-17-2016, 07:47 AM
José Augusto Re: RANKING Given Multiple... 03-17-2016, 07:50 AM
watchouse Re: RANKING Given Multiple... 03-17-2016, 07:58 AM
José Augusto Re: RANKING Given Multiple... 03-17-2016, 08:29 AM
watchouse Re: RANKING Given Multiple... 03-17-2016, 10:37 AM
dflak Re: RANKING Given Multiple... 03-17-2016, 09:42 AM
  1. #1
    Registered User
    Join Date
    05-14-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    45

    RANKING Given Multiple Criteria

    I need a formula in column BH which ranks the activity in column A given the followin criteria:

    Rank by Age (column AJ) - oldest is No. 1.
    Column BI = NON CIVILS
    Column BB = ISBLANK

    Rank 1 to 10 for the above criteria when LEFT(AP2,1)="R"
    Rank 1 to 10 for the above criteria when LEFT(AP2,1)="A"
    Rank 1 to 10 for the above criteria when LEFT(AP2,1)="G"

    Display rank results as R1 0081 03ABCD

    I have manually typed in the results.

    Thanks if you can help.
    Attached Files Attached Files

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: RANKING Given Multiple Criteria

    Hi
    Try this in BH2
    =IF(BI2="NON CIVILS",IF(LEFT(AP2,1)="G",IF(COUNTIF(BH$1:BH1,"G*")<10,"G"&COUNTIF(BH$1:BH1,"G*")+1&" "&A2,""),IF(LEFT(AP2,1)="R",IF(COUNTIF(BH$1:BH1,"R*")<10,"R"&COUNTIF(BH$1:BH1,"R*")+1&" "&A2,""),IF(LEFT(AP2,1)="A",IF(COUNTIF(BH$1:BH1,"A*")<10,"A"&COUNTIF(BH$1:BH1,"A*")+1&" "&A2,""),""))),"")
    Formula: copy to clipboard
    =IF(BI2="NON CIVILS",IF(LEFT(AP2,1)="G",IF(COUNTIF(BH$1:BH1,"G*")<10,"G"&COUNTIF(BH$1:BH1,"G*")+1&" "&A2,""),IF(LEFT(AP2,1)="R",IF(COUNTIF(BH$1:BH1,"R*")<10,"R"&COUNTIF(BH$1:BH1,"R*")+1&" "&A2,""),IF(LEFT(AP2,1)="A",IF(COUNTIF(BH$1:BH1,"A*")<10,"A"&COUNTIF(BH$1:BH1,"A*")+1&" "&A2,""),""))),"")

  3. #3
    Registered User
    Join Date
    05-14-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: RANKING Given Multiple Criteria

    Hi Jose,
    Thanks for your quick reply. It works brilliantly except that if there is a date in column BB, it still ranks. Can you make it so it only ranks with column BB is "". Thanks in anticipation. Andy.

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: RANKING Given Multiple Criteria

    Hi
    Cell BB58 is not empty. Why BH58 is 58 0041 78SDYR ? I do not see any date in column BB.

    Try
    Formula: copy to clipboard
    =IF(ISEMPTY(BB2),"",IF(BI2="NON CIVILS",IF(LEFT(AP2,1)="G",IF(COUNTIF(BH$1:BH1,"G*")<10,"G"&COUNTIF(BH$1:BH1,"G*")+1&" "&A2,""),IF(LEFT(AP2,1)="R",IF(COUNTIF(BH$1:BH1,"R*")<10,"R"&COUNTIF(BH$1:BH1,"R*")+1&" "&A2,""),IF(LEFT(AP2,1)="A",IF(COUNTIF(BH$1:BH1,"A*")<10,"A"&COUNTIF(BH$1:BH1,"A*")+1&" "&A2,""),""))),""))

  5. #5
    Registered User
    Join Date
    05-14-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: RANKING Given Multiple Criteria

    Hi Jose, Thanks for your help again. 58 was a typo error (sorry). My excel does not recognise ISEMPTY. Have tried replacing with BB2="" but that does not work. Any ideas? Thanks, Andy.

  6. #6
    Registered User
    Join Date
    05-14-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: RANKING Given Multiple Criteria

    Updated example attached.
    Attached Files Attached Files

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: RANKING Given Multiple Criteria

    Hi @watchouse

    I don't see any value in cells in range BB2:BB961. All this cells are empty.
    I used my first formula (post #2) and the results are the same you proposed
    Every cells in range(BH2:BH961) are equal to cells I backup range(BK2:BK961)
    (See the BN2 CSE formula)
    What is wrong?

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: RANKING Given Multiple Criteria

    Sorry. I don´t append the file EXAMPLE(3).xlsm

  9. #9
    Registered User
    Join Date
    05-14-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: RANKING Given Multiple Criteria

    Sorry, I removed all the values in column BB but they do have date values. I need to only rank when there is no date in that cell.

    Sorry for the confusion.

  10. #10
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: RANKING Given Multiple Criteria

    Try these
    Formula: copy to clipboard
    =IF(ISBLANK(BB2),IF(BI2="NON CIVILS",IF(LEFT(AP2,1)="G",IF(COUNTIF(BH$1:BH1,"G*")<10,"G"&COUNTIF(BH$1:BH1,"G*")+1&" "&A2,""),IF(LEFT(AP2,1)="R",IF(COUNTIF(BH$1:BH1,"R*")<10,"R"&COUNTIF(BH$1:BH1,"R*")+1&" "&A2,""),IF(LEFT(AP2,1)="A",IF(COUNTIF(BH$1:BH1,"A*")<10,"A"&COUNTIF(BH$1:BH1,"A*")+1&" "&A2,""),""))),""),"")

  11. #11
    Registered User
    Join Date
    05-14-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: RANKING Given Multiple Criteria

    Hi Jose, It works brilliantly. I don't have a clue how it works, but it does! Thank you very much from myself and the UK's largest water company!

  12. #12
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,956

    Re: RANKING Given Multiple Criteria

    Maybe you can do something with pivot tables. In the attached, the pivot table has a filter for top 10 values.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Ranking - multiple criteria
    By Lugashz in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-14-2015, 09:09 AM
  2. Unique ranking by multiple criteria
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2015, 08:03 AM
  3. Multiple Criteria Ranking
    By Keelin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2014, 01:32 AM
  4. [SOLVED] multiple criteria conditional ranking and protecting multiple sheets in one go
    By samktlim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2013, 09:31 AM
  5. Vlookup with multiple criteria & ranking
    By fitzpatrickb in forum Excel General
    Replies: 8
    Last Post: 11-20-2009, 03:57 PM
  6. Ranking by multiple criteria
    By augy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2008, 12:37 PM
  7. Multiple Ranking Criteria
    By Bullfn33 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-13-2007, 04:12 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