+ Reply to Thread
Results 1 to 5 of 5

Post a cell to the left of a Max/Large number

  1. #1
    Registered User
    Join Date
    06-01-2012
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    1

    Post a cell to the left of a Max/Large number

    My brain is melting right now. I have been trying to work out this situation for a while and I can not figure it out. I want to bring up a cell to the left of a min max. Here is an example of what I am trying to do.

    Dog 434 Cat 203 Bird 65 Fish 192

    What I want is to be able to run a Max and then a Large to pull up the cell to the left of the two highest values. So after I run the formula it will bring up Dog and then Cat on the second.

    Thank you for any and all help!

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

    Re: Post a cell to the left of a Max/Large number

    If your data is in row 1

    =INDEX($A$1:$H$1,MATCH(MAX($A$1:$H$1),$A$1:$H$1,0))
    does that work for you?
    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
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Post a cell to the left of a Max/Large number

    @ChemistB, doesn't that formula just return the max number? So in user's posted example, it would return 434 when he needs it to return Dog. So I imagine the Index range should be $A$1:$G$1 while the Match range should be $B$1:$H$1
    Hope that helps,
    ~tigeravatar

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

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Post a cell to the left of a Max/Large number

    Or,

    Just -1 from the MATCH,

    =INDEX($A$1:$H$1,MATCH(MAX($A$1:$H$1),$A$1:$H$1,0)-1)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

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

    Re: Post a cell to the left of a Max/Large number

    Tiger, yep, good catch. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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