+ Reply to Thread
Results 1 to 3 of 3

How to create rank string based on 'category' + 'price' column?

  1. #1
    Registered User
    Join Date
    05-17-2010
    Location
    Mankato, MN
    MS-Off Ver
    Excel 2003
    Posts
    11

    Question How to create rank string based on 'category' + 'price' column?

    Greetings!

    I'm trying to rank data and assign a value in the "Rank" column. No matter how many combinations I seem to try, it doesn't work. The obvious answer is "sort the data first", but that isn't practical for this scenario, as the end-users aren't tech-savvy in the least bit...they need to be able to paste in the values and *poof* it's done.

    Basically, I have three real estate property categories in my spreadsheet: Active, Sold, and Unsold. Active is all currently-listed properties. Sold is all sold properties. Unsold is anything that was listed and either expired or was withdrawn.

    what I'm looking to do is create something similar to this (sorry for the make-shift columns)...the "Rank" column is the is the calculated value:

    Rank Status Price
    Sold 2 Sold 203000
    Unsold 4 Unsold 270000
    Sold 4 Sold 206000
    Active 1 Active 219900
    Active 2 Active 219900
    Sold 3 Sold 205000
    Active 3 Active 224900
    Unsold 2 Unsold 244900
    Unsold 3 Unsold 269500
    Active 4 Active 225900
    Unsold 1 Unsold 233500
    Sold 1 Sold 203000

    The "Rank" column should look at the "Status" and "price" column; the lowest-priced value for each status group should be "1", second-lowest is "2", and so-forth. In the event of two properties in the same category having the same price, it should assign the first occurance the lower value...(see Active 1 and Active 2 in data above...both are 219900.)

    Once the formula determines that numerical value, then adds the "Status" from the next column over to create a unique rank value...ie, cell A2 is "Sold 2"... formula would be =B2&" "&[rank formula here]

    Could somebody please help me out on this? It's one of the last items on my list on this project before I can be done with it.

    Thank you in advance!

    :::a

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: How to create rank string based on 'category' + 'price' column?

    Try this A2 and copy down.

    =B2&" "&SUMPRODUCT(($B$2:$B$13=B2)*($C$2:$C$13<C2))+SUMPRODUCT(($B$2:$B2=B2)*($C$2:$C2=C2))

    Regards

  3. #3
    Registered User
    Join Date
    05-17-2010
    Location
    Mankato, MN
    MS-Off Ver
    Excel 2003
    Posts
    11

    Thumbs up Re: How to create rank string based on 'category' + 'price' column?

    Quote Originally Posted by sailepaty View Post
    Try this A2 and copy down.

    =B2&" "&SUMPRODUCT(($B$2:$B$13=B2)*($C$2:$C$13<C2))+SUMPRODUCT(($B$2:$B2=B2)*($C$2:$C2=C2))

    Regards
    Awesome! Thank you very much, sailepaty. That was EXACTLY what I was looking for!

    :::a

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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