+ Reply to Thread
Results 1 to 17 of 17

Ranking formula Help

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Ranking formula Help

    Hey Guys

    I need some help with a ranking formula

    There are 5 columns within the spreadsheet

    The Rm code, is linked to the sellers Name

    MCC Code is linked to the mcc Description

    Count of mcc, counts how many times the Seller (rm code/Seller code) has dealt with that particular MCC description
    I have a built a quick pivot table, which provides me with the data, however i want to rank the individual sellers in order of most mcc

    so for eg in the screen print provided
    mcc code 0742 the order would be
    r10 sara chambers 170
    r12- zoe Mitchell 130
    r14 Adam Spike 67
    r13 sybille muir 53

    Can anyone help me with this ?

    Please find attached worksheet and screen print
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by masond3; 07-27-2012 at 06:49 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Ranking formula Help

    Hi masond3,

    According to me, the order should be :-

    r10 sara chambers 170
    r12- zoe Mitchell 130
    r14 Adam Spike 67
    r13 sybille muir 53

    Please confirm?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Ranking formula Help

    hi dilipandey

    the order you provided is correct
    Sorry for the typo

    Regards

    D

    ---------- Post added at 01:11 PM ---------- Previous post was at 11:30 AM ----------

    Any1 got any ideas ?[COLOR="Silver"]

  4. #4
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Ranking formula Help

    could anyone help me with above problem ?

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    'Merica
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Ranking formula Help

    I made a pivot table for you that looks at your staff's names on the vertical and the MCC code on the horizontal then used a sum of count of MCC code for the data.

    To rank them I used the following formula {=IFERROR(RANK(B5:B9,B5:B9,0)}

    In order to rank you need to represent the data as an array or it will not return the value you want.

    Here is the file. Is this what you needed to accomplish? Query4(1).xlsx

  6. #6
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Ranking formula Help

    You can do it in a pivot table. Take a look at the attached and let me know if this is what you were looking for you.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Ranking formula Help

    HI guys

    thank you for responding back to this post. Both of you provide excelent solutions
    day92- i love the idea of a pivot table, however this raw data is comming from access, and i need to sumarise this data, so i can put it back into access and carry on sumarising this info. so unfortunately it wont work,so i need to have a ranking system like "the nash effect"

    the nash effect, as the mcc codes will contiunely grow same as the rm code/Seller code, is there anyway, this could be done via a macro, so regardless of ammount of data acess kicks out, the macro, will look at this, and sum it up the way you have done it ?

  8. #8
    Registered User
    Join Date
    07-11-2012
    Location
    'Merica
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Ranking formula Help

    I haven't learned VBA yet so I can't give you any further insight into building a macro.

    Without one, The only thing I could suggest would be to set your pivot table ranges to extend to the end of the work sheet and that way as new MCC codes are generated and your data set grow, then the pivot table will caputure them when you update the data set and refresh the table.

    As is for the rank you would just carry the formula out as far as the pivot table goes. You can orient it however you want and perhaps there is a better way. One particular issue that I see happening is the size of the staff increasing and that would not account for all the people in the rank. You just adjust the ranges accordingly to fix that. There are a lot of really talented VBA people on here who might be able to take what you have so far and figure out a way to automate the procedure but this is about as far as I can go. Happy to help and good luck.

  9. #9
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Ranking formula Help

    HI "the Nash effect" the worksheet i uploaded should have the following headings
    RM_Code MCC_Code
    CountOfMCC_Code
    SellerName
    MCC Description

    These column names will always remain the same, as this is what i am exporting from access to excel. Its just the numbers of rows which will expand.
    Is there a way, we could get the ranking system to work without the pivot table as a reference ?

  10. #10
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Ranking formula Help

    Without a pivot table you can use the attached.
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Ranking formula Help

    Hi

    Please click on attachment

    Cheer
    Attached Files Attached Files
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  12. #12
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Ranking formula Help

    HI day92
    thank you for providing me with a solution , however your solution, still doesnt rank each person via mcc

    Micope21- thank you for your solution, I love the idea of me typing in a mcc code, and it populates by ranking order. However as i will be putting this back into access, it wont be viable.

    Maybe i am coming at this at the wrong angle.
    In "day92 and also the nash effect" they had the mcc going across the top

    As the data will be exported the same way every time, (like in my sample sheet)
    Could we have mcc going down the column, and different rm via top ?

    Eg
    Seller Code
    MCC r05, r10 r12 r13, r14 MCC description
    5621 1 , 5 , 2 , 4 , 3 Women's Ready to Wear Stores
    0742 5, 1 , 2 . 4 , 3 Veterinary Services

    Based on my example it is saying, that based on a rank system, on the count of the mcc, r05, deals mostly with 5621 mcc, and r10 deals with that mcc code the least

    Eg 2
    mcc 0742 r10 deals with that mcc code more than r05

    Please find attached mock up, of how i would like the data displayed.

    any questions please let me know
    Attached Files Attached Files
    Last edited by masond3; 07-27-2012 at 04:48 AM.

  13. #13
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Ranking formula Help

    Ok

    Try this attachment?
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Ranking formula Help

    Micope21

    That is exactly what i want
    Is there a way, that we could get the results automated via a macro ?

    So eg, i run the macro

    and it develops, the layout, 2nd macro, will provide the results etc ?

  15. #15
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Ranking formula Help

    Sorry mate. I'm not a expert on macro only basic it. I'm more on formulas side than macro.

    Might be worth put your workbook in Forum: Excel Programming / VBA / Macros to sse if anyone can help you out?
    Last edited by Cutter; 07-27-2012 at 08:32 AM. Reason: Removed whole post quote

  16. #16
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Ranking formula Help

    micope21

    I appreciate your help If you ever need a favour returned , send me a msg and i will try and help

  17. #17
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Ranking formula Help

    Thank Cheer
    Last edited by Cutter; 07-27-2012 at 08:33 AM. Reason: Removed whole post quote

+ 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