+ Reply to Thread
Results 1 to 6 of 6

Using Match & Large to rank values.

  1. #1
    Registered User
    Join Date
    03-24-2009
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Using Match & Large to rank values.

    Well, as the title suggests, I'm using a Large function embedded in a Match function to a ranking.

    The issue I'm having is that if there are 2 of the same values in the Top 5, it counts the first one twice rather than each one once. Does anyone have an idea on how to rectify this?

    Please Login or Register  to view this content.
    Thanks!
    Last edited by Kanuhduh; 03-24-2009 at 03:13 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Using Match & Large to rank values.

    Solution may be here using LARGE and FREQUENCY further down the page

    http://en.allexperts.com/q/Excel-105...p-5-Values.htm
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-24-2009
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using Match & Large to rank values.

    Thanks for the reply, however I must not have stated my issue correctly.

    I'll explain more thoroughly;

    I have a table of values. The first column of the table is the Employee number and name.

    Example:

    04343: FORTS, JONATHAN [MGR]
    12364: GOON, EMMA [ASM]
    09876: SKYWALKER, LUKE [RSM]

    Then, in the columns following that, are sales numbers.

    Let's say Jon has 10, Emma has 6, and Luke has 6.

    04343: FORTS, JONATHAN [MGR] 10
    12364: GOON, EMMA [ASM] 6
    09876: SKYWALKER, LUKE [RSM] 6

    Now, using my code, I would get this:

    1. Jon
    2. Emma
    2. Emma

    I don't want to ignore that second 6, I want to ignore Emma the second time around.

    Any replies would be greatly appreciated.

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,447

    Re: Using Match & Large to rank values.

    You could add an insignificant random number to all the sales figures, which would force excel to treat them as different?
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  5. #5
    Registered User
    Join Date
    03-24-2009
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using Match & Large to rank values.

    Hmm, whereas that could be a solution, my problem is that I can't (prefer not to) alter the data on the table at all. The table is a source for several pivot tables through out the workbook.

    I made an alteration to get a step closer to a solution:

    Please Login or Register  to view this content.
    Hmm is the part I'm working on now. If there are more than one of the values, then do ~Something.

    I believe I'm going to make a second "Match" loop that starts at the row below the first result on the multiple matches. I just thought of this as I typed this post out, lol. I'll try it out and let everyone know how it goes.
    Last edited by Kanuhduh; 03-24-2009 at 02:09 PM.

  6. #6
    Registered User
    Join Date
    03-24-2009
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using Match & Large to rank values.

    Well, I solved it on accident.

    As I was typing out the above post, I had an epiphany of sorts. I threw a couple of counters, If/Thens, and Loops in my code and came out with the following.


    In case you have a hard time following my variables, here is the breakdown.

    Botow = Bottom Row of Data
    Resarge = Results of Large
    Poe = Partial Row Number
    Occal = Occurrence Total
    Occount = Occurrence Count
    Loe = Last Partial Row Number
    Margest = Match & Largest

    Please Login or Register  to view this content.
    Last edited by Kanuhduh; 03-24-2009 at 03:17 PM.

+ 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