+ Reply to Thread
Results 1 to 15 of 15

How to Rank the Value with Respective to Name and Place

  1. #1
    Registered User
    Join Date
    07-04-2017
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    15

    Post How to Rank the Value with Respective to Name and Place

    Hi All

    Pl find the example below, I Would like to rank my cells with respective to Place and Name . Kindly help me
    A B C
    PLACE Name Marks
    Chennai Style A 100
    Bangalore Style A 70
    Mumbai Style A 50
    Delhi Style A 40

    Bangalore Style B 90
    Mumbai Style B 50
    Delhi Style B 75

    Chennai Style C 100
    Bangalore Style C 20
    Delhi Style C 30

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to Rank the Value with Respective to Name and Place

    Suppose your data in "A" "B" "C"
    In "D2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy down.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    07-04-2017
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    15

    Re: How to Rank the Value with Respective to Name and Place

    zz.PNG

    The Above Formula is not Working out . Pl find the reference image of the format which i require

    I need the ranking for each style to different Places .

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: How to Rank the Value with Respective to Name and Place

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to Rank the Value with Respective to Name and Place

    I have check in your data no duplicate city & name hence showing 1
    If you change to one city & one name you can get result.
    See attachment. (Two sheets data)
    Attached Files Attached Files

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to Rank the Value with Respective to Name and Place

    Disregard. Misinterpreted post #3.
    Last edited by FlameRetired; 07-05-2017 at 12:17 AM.
    Dave

  7. #7
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How to Rank the Value with Respective to Name and Place

    Hope this works, put in cell D2 and copied down :
    =SUMPRODUCT(($A$2:$A$11=A2)*(C2<$C$2:$C$11))+SUMPRODUCT(($B$2:$B$11=B2)*(C2<$C$2:$C$11))+1

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to Rank the Value with Respective to Name and Place

    Is this what you mean?

    In D2 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Row\Col
    A
    B
    C
    D
    1
    PLACE Name Marks Rank
    2
    Chennai A
    100
    1
    3
    Bangalore A
    70
    2
    4
    Mumbai A
    50
    3
    5
    Delhi A
    40
    4
    6
    Bangalore B
    90
    1
    7
    Mumbai B
    50
    3
    8
    Delhi B
    75
    2
    9
    Chennai C
    100
    1
    10
    Bangalore C
    20
    3
    11
    Delhi C
    30
    2

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to Rank the Value with Respective to Name and Place

    Or do you mean this?

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


    Row\Col
    A
    B
    C
    D
    1
    PLACE Name Marks Rank
    2
    Chennai A
    100
    Chennai
    3
    Bangalore A
    70
    Bangalore
    4
    Mumbai A
    50
    Mumbai
    5
    Delhi A
    40
    Delhi
    6
    Bangalore B
    90
    Bangalore
    7
    Mumbai B
    50
    Delhi
    8
    Delhi B
    75
    Mumbai
    9
    Chennai C
    100
    Chennai
    10
    Bangalore C
    20
    Delhi
    11
    Delhi C
    30
    Bangalore

  10. #10
    Registered User
    Join Date
    07-04-2017
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    15

    Re: How to Rank the Value with Respective to Name and Place

    Hi Flame Retired

    Thank you so Much

    This what i expected.

    Kindly explain the formula, how it works

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to Rank the Value with Respective to Name and Place

    Which one?

  12. #12
    Registered User
    Join Date
    07-04-2017
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    15

    Re: How to Rank the Value with Respective to Name and Place

    This One

    Formula:
    =RANK($C2,INDEX($C$2:$C$11,MATCH($B2,$B$2:$B$11,0)):INDEX($C$2:$C$11,MATCH($B2,$B$2:$B$11,1)),0)

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to Rank the Value with Respective to Name and Place

    I'll do my best.

    The heart of this formula is in INDEX($C$2:$C$11,MATCH($B2,$B$2:$B$11,0)):INDEX($C$2:$C$11,MATCH($B2,$B$2:$B$11,1)).

    The two MATCH function calls return the first occurrence of the Name in it's current row (match type: exact) and the last occurrence of that same Name (match type: approximate). Joined together by ":" and passing those values to the first argument of each INDEX they define a sub range within Marks that is limited to the respective sub ranges of Names.

    In the formula bar if you select INDEX($C$2:$C$11,MATCH($B2,$B$2:$B$11,0)):INDEX($C$2:$C$11,MATCH($B2,$B$2:$B$11,1)) and press the F9 function key you will see that sub set of Marks values. Do that in each row corresponding to A. You will see {100;70;50;40}. In each row of B you will see {90;50;75} and in each row of C {100;20;30}.

    From there RANK ranks each value in each row of Marks against it's individual group and returns its rank number relative to that group (largest to smallest).

    Did this help?

  14. #14
    Registered User
    Join Date
    07-04-2017
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    15

    Re: How to Rank the Value with Respective to Name and Place

    Yes it is

    thank You so much

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to Rank the Value with Respective to Name and Place

    You are welcome. Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. [SOLVED] forcing a rank on 1 through 5 (no dups) using the rank formula in Excel
    By denver1717 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-22-2015, 08:28 AM
  2. [SOLVED] Rank set of numbers order within respective Group ID in another column
    By Brawnystaff in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-28-2014, 04:08 PM
  3. Replies: 8
    Last Post: 02-20-2014, 07:03 PM
  4. Replies: 6
    Last Post: 11-30-2013, 09:14 AM
  5. Replies: 1
    Last Post: 11-30-2013, 06:48 AM
  6. a folrula that will place the number in it's respective cell
    By MariaSevak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2013, 12:47 PM
  7. Replies: 1
    Last Post: 08-15-2005, 05:05 PM

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