+ Reply to Thread
Results 1 to 3 of 3

Index and Match - Max formula lookup the highest value

  1. #1
    Registered User
    Join Date
    04-14-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    28

    Index and Match - Max formula lookup the highest value

    Hi everyone,

    I wonder if someone could suggest the best way to create a VBA code for this example:

    Screen Shot 2015-03-12 at 16.40.09.png


    I would like to enter a letter in B9 (the yellow one) and getting the top three values.

    Is about using Index and Match - Max value formula, but do not know how to use it in VBA.

    Many thanks

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Index and Match - Max formula lookup the highest value

    Try this

    =INDEX($B$2:$F$5,MATCH($B$9,$A$2:$A$5,0),MATCH($C9,$B$1:$F$1,0))

    Row\Col
    A
    B
    C
    D
    E
    F
    1
    Store 1
    Store 2
    Store 3
    Store 4
    Store 5
    2
    A
    45
    20
    26
    62
    39
    3
    B
    32
    60
    52
    99
    55
    4
    C
    65
    0
    39
    32
    99
    5
    D
    45
    28
    9
    17
    42
    6
    7
    8
    9
    A Store 1
    45
    10
    Store 4
    62
    11
    Store 2
    20
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Index and Match - Max formula lookup the highest value

    In D9:

    =LARGE(OFFSET($B$1:$F$1,MATCH($B$9,$A$2:$A$5,0),),ROWS($1:1))

    C9:

    =INDEX($B$1:$F$1,MATCH(D9,OFFSET($B$1:$F$1,MATCH($B$9,$A$2:$A$5,0),),0))

    Drag down
    Quang PT

+ 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] Lookup Formula Help: Likely INDEX:MATCH
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 02-09-2015, 01:35 AM
  2. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  3. Formula using Lookup or index/match
    By Bpd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2014, 04:16 PM
  4. INDEX and MATCH or LOOKUP formula.
    By JapanDave in forum Excel General
    Replies: 19
    Last Post: 09-22-2010, 06:10 AM
  5. lookup? Index? match? formula
    By Richard in forum Excel General
    Replies: 4
    Last Post: 02-21-2006, 09:55 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