+ Reply to Thread
Results 1 to 8 of 8

Using Address, Index, Match and Max to give the cell location

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Charlotte NC
    MS-Off Ver
    Excel 2007
    Posts
    31

    Using Address, Index, Match and Max to give the cell location

    My question has 2 parts:

    I am trying to provide the cell location of the max number in a range. I am using the following formula:

    [CODE][=CELL("address",INDEX(Q2,MATCH(MAX(Q2:T2),Q2:T2,0)))/CODE]

    Once my cell location is provided, I need to add another formula that say:=IF(S2 is equal to the Max then S1 (which would be Rabbit)

    Column Q Column R Column S Column T
    R1 Cat Dog Rabbit Fish
    R2 5 6 8 2

    I know how to write the formula but I am having issuses making them work together
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using Address, Index, Match and Max to give the cell location

    Your original formula should be
    Please Login or Register  to view this content.
    Finding the cell above can be simply
    =INDEX(Q1:T1, Match(MAX(Q2:T2), Q2:T2,0))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-24-2013
    Location
    Charlotte NC
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Address, Index, Match and Max to give the cell location

    ChemistB,
    Thank You for your response, I use your suggested formula, it retuns the max value but not the cell location.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using Address, Index, Match and Max to give the cell location

    Take a look at this. Is this what you wanted?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-24-2013
    Location
    Charlotte NC
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Address, Index, Match and Max to give the cell location

    Yes, exactly!!!

  6. #6
    Registered User
    Join Date
    04-24-2013
    Location
    Charlotte NC
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Address, Index, Match and Max to give the cell location

    Chemist it works perfectly. Thank You !!
    The only issue that I have found when you remove numbers let say they are all zero because no numbers have been entered yet, it defaults to apple, I am assumomg that is because of the fact you have to reference the range with the lables and apple is the first cell in the range. default to apple.png please see the attached.

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Using Address, Index, Match and Max to give the cell location

    =IF(SUM(Q2:T2)=0,"",INDEX(Q1:T1,MATCH(MAX(Q2:T2),Q2:T2,0)))
    Try this
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  8. #8
    Registered User
    Join Date
    04-24-2013
    Location
    Charlotte NC
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Using Address, Index, Match and Max to give the cell location

    Popipopo,
    Thank You very much it worked as I nned it to. I did not think of using sum, wow so much to learn, but I like it.

+ 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. VBA Code to Replace Cell Value when Address found by Index/Match
    By Rubert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2013, 10:27 AM
  2. INDEX, MATCH: I want to get the first cell address where value is >= 2
    By angel1980 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2013, 02:28 PM
  3. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  4. [SOLVED] Match Column And Row to give value, index and match?
    By zhunter71 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-24-2013, 01:05 PM
  5. Match/Index array in VBA to return cell address
    By djhsickboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2011, 02:18 AM

Tags for this Thread

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