+ Reply to Thread
Results 1 to 8 of 8

Display value from 1st row in a column based on MIN statement

  1. #1
    Registered User
    Join Date
    11-12-2009
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    6

    Display value from 1st row in a column based on MIN statement

    Hey all,

    I'm hoping someone here can help me out. I need to write a MIN formula that displays the value from row 1 in the column instead of the actual minimum value in that range.

    I.E...

    Bob Sue Jerry
    2 1 3

    I need to select the MIN value, (1) but display "Sue" instead.

    To make things a little more complex.. I'm currently using a CSE formula to select the MIN value based on true/false statements on another page.

    =MIN(IF(Summary!$F$3:$P$3,$J5:$T5,FALSE))

    Can I even accomplish what I'm trying to do? Any guidance is appreciated. Thanks.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Display value from 1st row in a column based on MIN statement

    If the names are A1:C1 and the numbers in A2:C2, try =INDEX(A1:C1,1,MATCH(MIN(IF(Summary!$F$3:$P$3,$J5:$T5,FALSE)),A2:C2,0)) and confirm with CSE.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Display value from 1st row in a column based on MIN statement

    If A1="Bob", B1="Sue", C1="Jerry" and A2=2, B2=1, C2=3 (regardless of how those numbers got there - static or formula), then try:

    =INDEX(A1:C1,0,MATCH(MIN(A2:C2),A2:C2,0))

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Display value from 1st row in a column based on MIN statement

    How about

    =INDEX(A1:C1,1,MATCH(MIN(IF(Summary!$F$3:$P$3,$J5:$T5,FALSE)),A2:C2,0))
    submit with Ctrl-Shift-Enter
    Last edited by teylyn; 11-12-2009 at 06:36 PM. Reason: formula incomplete

  5. #5
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Display value from 1st row in a column based on MIN statement

    Yeah, good point, Paul. I guess I overlooked the obvious on the Min part.

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Display value from 1st row in a column based on MIN statement

    I don't think that works, Teylyn. If that Min is 1, it will return the first value, Bob, instead of Sue.
    *Edit: nevermind, formula now completed.
    Last edited by darkyam; 11-12-2009 at 06:38 PM.

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Display value from 1st row in a column based on MIN statement

    I'm not quite sure if the OP does not really want to lookup the value that the MIN Array formula returns, and then Index/Match on that value.

    The way the MIN array formula is set up, it will return a minimum value from the $J5:$T5 range, and as I understood, this value should be matched to the name.

    But maybe I've misread it.

  8. #8
    Registered User
    Join Date
    11-12-2009
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Display value from 1st row in a column based on MIN statement

    Quote Originally Posted by darkyam View Post
    If the names are A1:C1 and the numbers in A2:C2, try =INDEX(A1:C1,1,MATCH(MIN(IF(Summary!$F$3:$P$3,$J5:$T5,FALSE)),A2:C2,0)) and confirm with CSE.
    That did it perfectly. I Wish I had posted earlier today.. would have saved me the headache I've had since 9am.

    Thanks so much all.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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