+ Reply to Thread
Results 1 to 4 of 4

INDEX & MATCH WITH MAX Value

  1. #1
    Registered User
    Join Date
    08-13-2018
    Location
    Bulgaria
    MS-Off Ver
    Office 2016
    Posts
    2

    Unhappy INDEX & MATCH WITH MAX Value

    Hello everyone,

    I`m working on a spreadsheet and got stuck on the following: I have the following data: ID (column A), Country(column B) and Number of new clients(column C). What I need as a result is the country which has generated most new customers based on the ID.

    I have written the following for getting the highest number but can`t seem to be able to add looking by ID in the formula and it functioning properly.


    =INDEX(B2:B350,MATCH(MAX(C2:C350),C2:C350,0))
    Last edited by Flora1; 08-13-2018 at 11:02 AM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: INDEX & MATCH WITH MAX Value

    =index(b2:b350,match(max(if(a2:a350=id,c2:c350)),c2:c350,)) CSE

  3. #3
    Registered User
    Join Date
    08-13-2018
    Location
    Bulgaria
    MS-Off Ver
    Office 2016
    Posts
    2

    Re: INDEX & MATCH WITH MAX Value

    Thanks, maybe I didn`t quite explain this but there are several numeric IDs listed in A so the lookup needs to be based on two criteria: the respective ID and the country where it got most clients from.

    I`ve tried replacing the a2:a350=id with a cell reference but no luck. Any ideas what to replace it with?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,777

    Re: INDEX & MATCH WITH MAX Value

    Hello Flora1 and Welcome to Excel Forum.
    Be sure that after editing Tim's formula you activate by simultaneously pressing the Ctrl, Shift and Enter keys.
    If that doesn't help then I would suggest uploading a sample spreadsheet that manually demonstrates your expected outcome.
    To attach a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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