+ Reply to Thread
Results 1 to 3 of 3

Rank with a array that is not in cells next to each other.

  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2013
    Posts
    12

    Rank with a array that is not in cells next to each other.

    Hi Forum.

    I'm trying to use the rank function to rank some numbers from different years.

    This is an example of my start data.
    Year Amount
    A 2014 1000$
    2013 2000$
    2012 3000$
    B 2014 3000$
    2013 2000$
    2012 1000$
    C 2014 1200$
    2013 1300$
    2012 1400$

    Now i want to rank the different years of each (A,B,C) compaired to the others.

    Like this:

    Year Amount Rank
    A 2014 1000$ 3
    2013 2000$ 1
    2012 3000$ 1
    B 2014 3000$ 1
    2013 2000$ 1
    2012 1000$ 3
    C 2014 1200$ 2
    2013 1300$ 3
    2012 1400$ 2

    The problem is now that the array that I need to enter in my =RANK function is not an array with cells next to each other.

    Hope you can help me.

    - Xnemo

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Rank with a array that is not in cells next to each other.

    =SUMPRODUCT(($B$1:$B$9=$B1)*($C$1:$C$9>C1))+1
    Assuming that you have data in ColumnA to Column C
    or
    =COUNTIFS($B$1:$B$9,$B1,$C$1:$C$9,">"&C1)+1
    Last edited by samba_ravi; 01-20-2015 at 05:05 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    08-08-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2013
    Posts
    12

    Re: Rank with a array that is not in cells next to each other.

    Thank you very much.

+ 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. Rank With Array
    By John Vieren in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2012, 04:58 PM
  2. VBA Rank for an Array
    By PNCD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2009, 08:17 PM
  3. Rank with array of cells
    By Mad Ant in forum Excel General
    Replies: 4
    Last Post: 10-25-2005, 09:05 AM
  4. Rank items in VBA Array?
    By jasonsweeney in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2005, 05:05 AM
  5. Pass an array to Rank
    By Biff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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