+ Reply to Thread
Results 1 to 3 of 3

Help needed with ranking formula

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    port elizabeth, south africa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help needed with ranking formula

    Hi

    I'm trying to find a formula to rank a group of numbers in a column with the following criteria:

    >100 = 1
    <100 and >20 = 2
    <20 = 3

    therefore all those numbers greater than 100 will be assigned a 1 and all those less than 100, but greater than 20 will get a 2. lastly all those results less than 20 will get a 3.

    I have tried =LOOKUP(RANK(R2,$R$2:$R$100),{1,2,3}) but this formula will only give me one #1 and one #2 all the rest will be 3.

    I have also tried IF((AND($R$2:$R$100<100,$R$2:$R$100>20)),2,0)+((AND($R$2:$R$100>100)),1,0)+((AND($R$2:$R$100<20)),3,0) but this returns an error

    can anyone help?

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Help needed with ranking formula

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    port elizabeth, south africa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help needed with ranking formula

    Awesome! works great, thanks Sindhus

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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