+ Reply to Thread
Results 1 to 4 of 4

Finding the row that satisfies a MIN IF function

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Finding the row that satisfies a MIN IF function

    Hi all

    I'm trying to find the row that satisfies a MIN IF function. I've been able to get the MIN IF to work using Excel functions. The problem is, I can't figure out how to output the exact row that satisfies the MIN IF, everything I've previously tried can only get it to output the first row it comes across that has the same value as the min value. As many of the min values are exactly the same, this is a problem. The reason I need the row numbers is that I need to perform calculations also involving other values in the rows that satisfy the MIN IF, but I have no way to call them in the INDEX function if I can't record the corresponding row numbers.

    My MIN IF code is like this: =MIN(IF((Data!$A$2:$A$4154=A2)*(Data!$E$2:$E$4154=B2),Data!$C$2:$C$4154).

    Thanks in advance for your help.
    Rhiannon
    Attached Files Attached Files
    Last edited by reegleeson@gmail.com; 10-27-2012 at 06:11 PM.

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Finding the row that satisfies a MIN IF function

    Hi
    Not sure if its what you want have you tried inserting a table then use instead of top ten bottom ten that will give you your row numbers and values.

    Chris
    Click my star if I helped Thanks

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Finding the row that satisfies a MIN IF function

    Quote Originally Posted by reegleeson@gmail.com View Post
    Hi all

    I'm trying to find the row that satisfies a MIN IF function. I've been able to get the MIN IF to work using Excel functions. The problem is, I can't figure out how to output the exact row that satisfies the MIN IF, everything I've previously tried can only get it to output the first row it comes across that has the same value as the min value. As many of the min values are exactly the same, this is a problem. The reason I need the row numbers is that I need to perform calculations also involving other values in the rows that satisfy the MIN IF, but I have no way to call them in the INDEX function if I can't record the corresponding row numbers.

    My MIN IF code is like this: =MIN(IF((Data!$A$2:$A$4154=A2)*(Data!$E$2:$E$4154=B2),Data!$C$2:$C$4154).

    Thanks in advance for your help.
    Rhiannon
    =MIN(IF((Data!$A$2:$A$4154=A2)*(Data!$E$2:$E$4154=B2),ROW(Data!$C$2:$C$4154)))

  4. #4
    Registered User
    Join Date
    10-19-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Finding the row that satisfies a MIN IF function

    Thank you Teethless mama - that is exactly what I needed

  5. #5
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Finding the row that satisfies a MIN IF function

    You're Welcome!

+ 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