+ Reply to Thread
Results 1 to 15 of 15

Ranking for multiple ranges in a column

  1. #1
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Ranking for multiple ranges in a column

    Hello Experts,

    Facing some tough time with Ranking. I have sales data from various outlets those are separated by region. Every region has a subtotal. What I am trying to achieve ranks with in the region and ranks within total network. Please note I have data running down in few hundred rows and I am not too sure how to rank from multiple ranges (Excluding the subtotal line).

    Attached, please find a sample file to explain the problem and desired output. I am looking for best possible solution for column E.

    Best Regards/VKS
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Ranking for multiple ranges in a column

    With an pivot table, see the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Ranking for multiple ranges in a column

    Hello oeldere,
    Thanks for your help as many times before.
    Do you think we can get both the ranks in the PT i mean getting Rank within region and total ranking.
    Best Regards/VKS

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Ranking for multiple ranges in a column

    Maybe like this (second pivot table).

    See the attached file.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Ranking for multiple ranges in a column

    It seems pivot table is not the right solution as i cant sort the locations.
    Thanks for your time though.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Ranking for multiple ranges in a column

    Please Login or Register  to view this content.
    If this is NOT what you want, please add the result, manualy in the file and post it.

    Please reply.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Ranking for multiple ranges in a column

    Sir please see the updated file. Hope this is clear enough to explain where am i trying to reach.
    Best Regards/VKS
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Ranking for multiple ranges in a column

    I think i also must add here that column A B and C are Pivot table already & D and E are ranks next to the pivot table but outside pivot table

  9. #9
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Ranking for multiple ranges in a column

    Hello VKS,

    Try this in E2, then copy down.

    =IF(B2="","",COUNTIFS(B:B,"<>",C:C,">"&C2)+1)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  10. #10
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Ranking for multiple ranges in a column

    Thanks Haseeb..... Worked Great
    My Star goes out to both of you for helping me getting over this.
    Wondering if Hasibs solution can be a part of the Pivot Table as calculated field. If not then can you please slightly explain the formula please.
    Best Regards/VKS
    Last edited by VKS; 08-24-2013 at 09:24 AM. Reason: Corrected the typo (Haseeb) in line 1

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Ranking for multiple ranges in a column

    @VKS,

    You don't want the result asending?

    Instead you just need the number of the rank?

  12. #12
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Ranking for multiple ranges in a column

    Thats right sir coz column a b and c are pivot table that i dont want to touch. My play area is limited to ranks within the region and all regions combined i.e. column D and E (E was the problem area)

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Ranking for multiple ranges in a column

    Then I guess it's not possible with pivot table.

  14. #14
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Ranking for multiple ranges in a column

    hi VKS. Haseeb's formula is as such:
    If B2 is equals to blank, then show as blank. otherwise, count how many cells are not equals to blank in Column B (B:B,"<>") AND how many cells in column C are greater than C2 (C:C,">"&C2). by counting only those which are not blanks in column B, the Region Totals will not be included when ranking. so in row 2 where the Revenue is 10, only 3 values are greater than it (in C3, C4 & C10). you then need to plus 1 to include the value itself. hope that helps

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  15. #15
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Ranking for multiple ranges in a column

    Thanks a lot Benishiryo for your help.

+ 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 Multiple Sheets Based on a Particular Column?
    By kestefon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2013, 09:47 AM
  2. Multiple column ranking
    By vzunac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-27-2009, 05:24 AM
  3. Ranking Against Selected Cells, not ranges?
    By DSH in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-26-2008, 01:38 PM
  4. Ranking within in ranges
    By ah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2006, 11:25 AM
  5. Ranking on multiple column
    By Ahmad Adha Ali in forum Excel General
    Replies: 1
    Last Post: 05-20-2005, 07:37 AM

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