+ Reply to Thread
Results 1 to 12 of 12

Composite Ranking

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Chicago area
    MS-Off Ver
    Excel 2003
    Posts
    17

    Composite Ranking

    I would like to rank stocks based on a composite value. The composite value would use 2 variables. For example, the highest rate of change over the last 6 months and the highest score for an indicator called "X". I don't simple sorting can accomplish this. How can I link the stocks with the different values? Looking for suggestions.

  2. #2
    Registered User
    Join Date
    12-16-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    66

    Re: Composite Ranking

    Create a helper column to calculate this composite score, then sort based on the composite score. That would be my best guess. If you give us an example worksheet, perhaps we can be of more assistance!
    If I helped you, please give me reputation.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Composite Ranking

    Are the two scores of the same weight or is one the primary rank factor and the other secondary?
    Are the two scores of the same magnitude (i.e. 1-100)?
    As Jk says, you will probably need a dummy column (which you can hide if you like)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    04-09-2013
    Location
    Chicago area
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Composite Ranking

    The 2 values have the same weight. I'm at work now but can post an image later this evening

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Composite Ranking

    Okay, let's say score 1 is in col A, score 2 in col B,
    Assuming same magnitude for the two scores. Insert a col C with formula =IF(ISNUMBER(A2),A2+B2,"") copied down (again, you can hide this if you want)

    Then in D2
    =RANK(C2,$C$2:$C$500)
    Does that work for you?
    If the magnitudes are different, i.e. Score 1 can range from 1 to 500 and score 2 ranges from 1 to 100, then you need to normalize
    in C2 = IF(ISNUMBER(A2), A2/5 + B2, "")

  6. #6
    Registered User
    Join Date
    04-09-2013
    Location
    Chicago area
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Composite Ranking

    =RANK(C2,$C$2:$C$500) just adds col A and col B. 1st I want to rank col A - give it a value from highest to lowest then rank col B - give it a value from highest to lowest, then add the 2 ranks from col A and col B

  7. #7
    Registered User
    Join Date
    12-16-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    66

    Re: Composite Ranking

    Then try putting this in C2:

    Please Login or Register  to view this content.
    Then in D2:, put
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-09-2013
    Location
    Chicago area
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Composite Ranking

    =(RANK(A2,A:A)+RANK(B2,B:B)) is what I'm looking for but I had to put it in as
    (@RANK(F5,F5..F21,0)+@RANK(H5,H5..H21,0)) and it wouldn't copy down correctly...kept increasing the range to h22,h23 and so on, so had to edit every cell. Now I need to do a final sort, but when I do to values are coming up different

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Composite Ranking

    (@RANK(F5,F5..F21,0)+@RANK(H5,H5..H21,0))
    In order to keep cells from increasing (that you don't want to increase, the $ acts as an anchor
    try
    (@RANK(F5,$F$5:$F$21,0)+@RANK(H5,$H$5$H$21,0))

  10. #10
    Registered User
    Join Date
    04-09-2013
    Location
    Chicago area
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Composite Ranking

    Great, now is possible to link the name of the stock in col A with the final composite value?

  11. #11
    Registered User
    Join Date
    12-16-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    66

    Re: Composite Ranking

    Depending on the number of data points you have, you don't want to stop the range at F21. You could try either (RANK(F5,F:F) or (RANK(F5:$F$5:$F$9999) to make sure you stay within a growing list.

    What do you mean by "linking" the name? You could create another helper column and use:
    Please Login or Register  to view this content.
    That assumes your name is in A5, and the composite rank is in I5. It'll generate [Name]-[Composite Rank] in that other help column.

  12. #12
    Registered User
    Join Date
    04-09-2013
    Location
    Chicago area
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Composite Ranking

    Never mind, I forgot to include a "$" in one of the formulas. Did a simple sort and everything works. I looked at the RANK function before but the percentile thing made me think it didn't apply. Thank again for the help!

+ 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