+ Reply to Thread
Results 1 to 4 of 4

Applying RANK function to a conditional range

Hybrid View

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    3

    Applying RANK function to a conditional range

    Hi all,

    First post - first time working for a company where I don't have a real expert to turn to! Any help will be very gratefully received.

    I am trying to rank a cell reference among a range of cells that all satisfy a common condition. For example in column A I might have names such as "AA1", "AA2", "AA3", "BB1", "BB2", "BB3", "CC1" etc. In column B I have their corresponding "type", i.e. "AA", "BB", "CC". In column C I have the actual data which is a measure of performance.

    Question: What formula will give me the rank of AA1's performance relative to the other AAs such that as the data set grows/changes the formula will remain robust? I.e. I know how to do it by manually selecting the cells of all the AAs but this range may grow and I need the formula to remain correct.

    Hope that makes sense.

    Thanks

  2. #2
    Registered User
    Join Date
    07-30-2013
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Applying RANK function to a conditional range

    Just figured out how to add an attachment. Formula I want changing is in E2. I can't change the format of the table because there are multiple tables in the workbook that need to follow an identical layout.

    Thanks again if anyone can help
    Attached Files Attached Files

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Applying RANK function to a conditional range

    fill this down in d assuming it stars in row one if not adjust range to suit
    =IF(B1="","",SUMPRODUCT(--(B$1:B$1000=B1),--(C1< C$1:C$1000))+1)
    since yours starts in a2
    =IF(B2="","",SUMPRODUCT(--(B$2:B$1000=B2),--(C2< C$2:C$1000))+1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-30-2013
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Applying RANK function to a conditional range

    That's great, thanks for solving so quickly. You have used some techniques there that I'm not familiar with so it looks like I have some homework to do.

    Cheers

+ 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] Conditional Formatting not applying
    By Lovelylou79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2013, 11:01 PM
  2. [SOLVED] Applying Conditional Formatting to a Range in VBA (range is set by variables)
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-12-2013, 08:32 AM
  3. RANK Function : excluding subtotals from the Range
    By johnny13 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 04-11-2013, 01:49 PM
  4. Applying function to Range
    By bjcowen9000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2013, 09:55 AM
  5. =RANK applying nth instance of duplicate to next n; avoid sharing
    By AlvaroSiza in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2012, 10:31 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