+ Reply to Thread
Results 1 to 2 of 2

Ranking columns based on condition in Excel

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Ranking columns based on condition in Excel

    Hi,
    I have a requirement in which I need to get ranking of tax rates based on corresponding store number.

    The work sheet will have columns like this

    Date, Store, Tax rate, Sales amount, Tax amount,...

    data looks like this

    02/01/2011, 1190, 6%, 100, 6
    02/01/2011, 1190, 7%, 200, 14
    02/01/2011, 1190, 5%, 50, 2.5

    02/01/2011, 1200, 9%, 200, 18
    02/01/2011, 1200, 4%, 100, 8
    02/01/2011, 1200, 2%, 150, 3

    I need to get Ranking for tax rate as below in another work sheet
    The columns like

    Store, Tax rate, Tax Rank
    Data like.
    1190, 6%, 2
    1190, 7%, 1
    1190, 5%, 3

    1200, 9%, 1
    1200, 4%, 2
    1200, 2%, 3

    Please help me to achieve this solution.
    Thanks in advance,
    Srikanth

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Ranking columns based on condition in Excel

    If you have the Store column in starting in A2 and the Tax Rate in B2, then in C2:

    =SUMPRODUCT(--($A$2:$A$7=A2),--(B2<$B$2:$B$7))+1

    copied down

    Adjust ranges to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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