+ Reply to Thread
Results 1 to 4 of 4

Ranking with exclusions

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Ranking with exclusions

    Hi,

    I have a list of names in column A and their associated values in column B.

    I would like to rank in column C the values (in column B) of each of the items in column A that aren’t “Apple”; values in column B associated with the word “Apple” should be excluded from the ranking calculation.

    Can someone please suggest a solution?

    Thanks!

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Ranking with exclusions

    Maybe this would work for you.

    A
    B
    C
    D
    1
    ITEM VALUE HELPER RANK
    2
    Pears
    1
    1
    7
    3
    bears
    2
    2
    6
    4
    apples
    3
    5
    oranges
    4
    4
    4
    6
    peaches
    5
    5
    3
    7
    apples
    6
    8
    bananas
    14
    14
    1
    9
    grapes
    3
    3
    5
    10
    bananas
    11
    11
    2
    11
    12
    13
    HELPER
    14
    =IF(A2="apples","",B2)
    15
    16
    RANK
    17
    =IFERROR(RANK(C2,$C$2:$C$10,0),"")
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,291

    Re: Ranking with exclusions

    Hi Andrew,

    My answer may be the same as Newdoverman, but see if it is. See the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Ranking with exclusions

    Assuming the highest value should be ranked 1 you can do that without any helper cells if you use this formula in C2 copied down

    =IF(A2="apple","",COUNTIFS(A:A,"<>apple",B:B,">"&B2)+1)

    If you want to rank the lowest value as 1 then just change the ">" to a "<"
    Last edited by daddylonglegs; 01-14-2015 at 11:42 AM.
    Audere est facere

+ 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 with exclusions
    By andrewc in forum Excel General
    Replies: 1
    Last Post: 08-14-2014, 05:04 AM
  2. [SOLVED] Sum with exclusions
    By dblcrona in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2014, 10:35 AM
  3. [SOLVED] Totalling with exclusions
    By Caulerpa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-17-2012, 10:38 AM
  4. Min with exclusions
    By elfishio in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-10-2011, 08:49 PM
  5. COUNTIF using exclusions
    By djDaemon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2006, 02:15 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