+ Reply to Thread
Results 1 to 12 of 12

Ranking with criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    12

    Ranking with criteria

    Dear sirs,

    I have a data which displays transaction line by line. I would like to rank Top 10 Amount by region. Is there a way I could use formula to automatically rank the data I want and place into a fixed table? Please see attached file.

    Currently I need to pivot, then filter "Region", then rank Amount, then copy to the summary table.

    Thank you in advance for your help.

    -macov
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Ranking with criteria

    I have solved for 'Central' region. Same logic can be followed for all the regions.

    Please try this file.
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Registered User
    Join Date
    08-28-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Ranking with criteria

    Thank you for your great sharing, 'ramanahrm'.

    However, I will need to rank by "Sum of amount", while your formula pick an amount in a cell to rank.

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

    Re: Ranking with criteria

    See the attachment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-28-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Ranking with criteria

    Sorry if I have not made myself very clear. Please see expected result attached.

    million thanks for your time.
    Attached Files Attached Files

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

    Re: Ranking with criteria

    then it is better to use pivot table

  7. #7
    Registered User
    Join Date
    08-28-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Ranking with criteria

    Is there any way to create an automated for this kind of Sum and ranking? I have to do for 9 sub-region. I try to avoid the repetition of pivot+filter+copy+paste 18 times. (9 sub region x 2 amount)

    Greatly appreciated your help, nflsales.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Ranking with criteria

    Pl see attached file with formulas.
    Data is copied to another location and sorted on Region and then ID.Formulas are used in K & L columns.If everything is required automatically it can be done through Macro. For other regions formulas can be extended.

  9. #9
    Registered User
    Join Date
    08-28-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Ranking with criteria

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see attached file with formulas.
    Data is copied to another location and sorted on Region and then ID.Formulas are used in K & L columns.If everything is required automatically it can be done through Macro. For other regions formulas can be extended.
    kvsrinivasamurthy,

    I don't see your attached file. Please kindly re-post. Thank you.

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Ranking with criteria

    Pl Find the attached file.Data Is copied to other location and sorted on Region and then ID.Formulas are in K & L Columns .
    Original data is DELETED to reduce the File Size.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-28-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    12

    Thumbs up Re: Ranking with criteria

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl Find the attached file.Data Is copied to other location and sorted on Region and then ID.Formulas are in K & L Columns .
    Original data is DELETED to reduce the File Size.
    It's fantastic. Thank you very much.

  12. #12
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Ranking with criteria

    Thanks for the compliments. One more trial . Pl see.

    With Original data also it is possible to get result.(File size is too large to upload).
    (To enter Array Formula ,Paste the Formula and press Ctrl+Shift+Enter Keys together)

    IN Data Sheet
    The Below are Array Formulas
    IN E2
    =IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)=COUNTIFS($A$2:$A$19206,$A2,$B$2:$B$19206,$B2),SUMIFS($C$2:$C2,$A$2:$A2,$A2,$B$2:$B2,$B2),"")
    IN F2
    =IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)=COUNTIFS($A$2:$A$19206,$A2,$B$2:$B$19206,$B2),SUMIFS($D$2:$D2,$A$2:$A2,$A2,$B$2:$B2,$B2),"")
    Drag both till Row 19206

    IN "Remaining Amnt" Sheet

    In C3
    =IF($C3<>"",INDEX(Data!$B$2:$B$19206,MATCH($C3,Data!$E$2:$E$19206,0)),"")
    In D3 (Array Formula)
    =IFERROR(LARGE(IF(TRIM(Data!$A$2:$A$19206)="Central",Data!$E$2:$E$19206,""),ROW(A1)),"")

    In C17
    =IF($C17<>"",INDEX(Data!$B$2:$B$19206,MATCH($C17,Data!$E$2:$E$19206,0)),"")
    In D17(Array Formula)
    =IFERROR(LARGE(IF(TRIM(Data!$A$2:$A$19206)="East",Data!$E$2:$E$19206,""),ROW(A1)),"")

    Drag downwards as required

    IN "Over Due" Sheet

    IN C3
    =IF($C3<>"",INDEX(Data!$B$2:$B$19206,MATCH($C3,Data!$E$2:$E$19206,0)),"")
    IN D3(ARRAY)
    =IFERROR(LARGE(IF(TRIM(Data!$A$2:$A$19206)="Central",Data!$E$2:$E$19206,""),ROW(A1)),"")

    IN C17
    =IF($C17<>"",INDEX(Data!$B$2:$B$19206,MATCH($C17,Data!$E$2:$E$19206,0)),"")
    In D17 (ARRAY)
    =IFERROR(LARGE(IF(TRIM(Data!$A$2:$A$19206)="East",Data!$E$2:$E$19206,""),ROW(A1)),"")

    Drag downwards as required

+ 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. Ranking criteria
    By asmoghal in forum Excel General
    Replies: 2
    Last Post: 04-19-2011, 12:27 PM
  2. Automatic ranking with three criteria
    By Tenshu in forum Excel General
    Replies: 11
    Last Post: 02-02-2010, 12:20 AM
  3. Ranking by certain criteria
    By BDDR22 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-06-2009, 02:39 PM
  4. Multiple Ranking Criteria
    By Bullfn33 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-13-2007, 04:12 PM
  5. [SOLVED] Ranking with criteria
    By EstherJ in forum Excel General
    Replies: 1
    Last Post: 12-01-2005, 12:00 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