+ Reply to Thread
Results 1 to 2 of 2

Ranking with exclusions

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

    Ranking with exclusions

    Hi,

    I’m trying to rank the values in column B but excluding from the calculation any values associated with the names “Apple”, “Pear” or “Grape” in column A.

    The formula I have is:

    =IF(A4="Apple","",IF(A4="Pear","",IF(A4="Grape","",COUNTIFS(A:A,"<>Apple",A:A,"<>Pear",A:A,"<>Grape",B:B,">"&B4))))+1

    However, there are #VALUE results for “Apple”, “Pear” and “Grape”, when I would have expected blanks.

    Can someone please suggest what I’m doing wrong?

    Also, is it possible to amend this formula to deal with ranking duplicate values in column B?

    Thanks!

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,685

    Re: Ranking with exclusions

    Have you tried to alter the part for col A to just =COUNTIFS(A:A,"<>apple",A:A,"<>pear",A:A,"<>grape",A:A,"<>") which covers everything but blanks, apples, grapes and pears? I don't know what is in B4 but you could add that part if needed.

    EDIT: w/o reference to what is in B or B4 I tested mine and it counts col A.
    Last edited by Sam Capricci; 03-12-2015 at 07:26 AM. Reason: clarity
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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: 3
    Last Post: 01-14-2015, 11:40 AM
  2. Ranking with exclusions
    By andrewc in forum Excel General
    Replies: 1
    Last Post: 08-14-2014, 05:04 AM
  3. [SOLVED] Sum with exclusions
    By dblcrona in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2014, 10:35 AM
  4. Min with exclusions
    By elfishio in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-10-2011, 08:49 PM
  5. [SOLVED] 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