+ Reply to Thread
Results 1 to 9 of 9

MODE and Index Match Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    MODE and Index Match Formula

    I'm looking to get the Mode for a column based off of a corresponding column. For example, in column A I have a list of "income ranges" and in column B I have a list of age ranges. I want to say that for each age range, the most frequent (Mode) income range occurred. I've attached a sample of the data.
    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: MODE and Index Match Formula

    You don't add the desired (expected) result.

    Here the solution with 2 helpcolumns and a pivot table.
    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
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    Re: MODE and Index Match Formula

    That works but when you're dealing with a worksheet that has a lot (30,000) rows, then it gets a little messy. Ultimately, I have maybe 10 different age categories in one column and I'm trying to have it look through the "income range" column and pull back whichever income range most frequently corresponds with that particular age range. So out of the 10 age ranges, there's only going to be 10 different income ranges that are matched based off of the frequency by which they've occurred in the rest of the report.

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

    Re: MODE and Index Match Formula

    And which income you want to show for the age of 30 - 35 which have 3 choises with just 1 value?

    See the example below.

    $15k - $20k 1
    $250k - $400k 1
    $60k - $75k 1

  5. #5
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    Re: MODE and Index Match Formula

    That shouldn't occurr since I have over 30,000 rows of data, but if by chance it did, I would want it to take the first once since I can sort the results from highest to lowest.

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

    Re: MODE and Index Match Formula

    Quote Originally Posted by dash11 View Post
    That shouldn't occurr since I have over 30,000 rows of data, but if by chance it did, I would want it to take the first once since I can sort the results from highest to lowest.
    I found only one category range that could even yield a mode.....70-80 year olds mode range $60k-$75k. (Yields {"";"";"";60;"";20;"";"";60;"";"";"";"";"";"";"";"";"";"";"";"";"";"";""} for the lower limits.) The rest all have unique numbers.

    I pulled the lower limits out of the ranges and made a lookup table.

    File attached.

  7. #7
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    Thumbs up Re: MODE and Index Match Formula

    Your magic worked perfectly! Thank you kindly!

  8. #8
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    Re: MODE and Index Match Formula

    I think the issue has something to do with the data set being so large (31,000 Rows), which is why it isn't working correctly. I've attached the complete worksheet to see if you might be able to help me troubleshoot the issue. I greatly appreciate your help with this one!!
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    Re: MODE and Index Match Formula

    Sorry, one last issue. This doesn't seem to work for 30,000 rows. I've tested it on up to about 1,000 and that's all that seems to be it's max. Is there anything that I can do to the process that would allow it to work with a much larger data set?

+ 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. Index/Match & Mode?
    By WWSL14 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2013, 04:04 PM
  2. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  3. Replies: 14
    Last Post: 11-30-2012, 02:54 PM
  4. Take Lower Match Value in a Mode Formula
    By cubysfan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-08-2011, 12:53 PM
  5. Index, Mode & Match Problem?
    By BodyHaven in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2008, 06:53 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