+ Reply to Thread
Results 1 to 6 of 6

MIN IF for multiple criteria in the same column

  1. #1
    Forum Contributor
    Join Date
    02-14-2013
    Location
    Biloxi, Ms
    MS-Off Ver
    2013 or 2016
    Posts
    115

    MIN IF for multiple criteria in the same column

    I have a column of test results with a test status and date for each test. What I'm looking for is a MIN IF formula that will give me the earliest "start date" only if the status is either "SAT" or "PART." In the small example below, the date returned would be "03/05/19." I can handle the MIN IF formula,
    ex
    Please Login or Register  to view this content.
    My problem comes with trying to introduce the OR "PART" statement that's throwing me for a loop.

    TEST RESULT DATE
    test1 SAT 05/08/19
    test2 REJ 01/05/19
    test3 PART 03/05/19
    test4 CHG 04/02/19
    test5 PART 04/02/19
    test6 SAT 03/19/19
    test7 REJ 02/02/19
    test8 SAT 04/08/19
    Last edited by xrajncajnx; 05-23-2019 at 09:42 AM. Reason: Issue resolved

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: MIN IF for multiple criteria in the same column

    HI

    If your data is in B3:C10 (row 2 has headers) use the following formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,907

    Re: MIN IF for multiple criteria in the same column

    Try

    {= MIN(IF((B2:B8="SAT")+(B2:B8="PART"),C2:C8))}

  4. #4
    Forum Contributor
    Join Date
    02-14-2013
    Location
    Biloxi, Ms
    MS-Off Ver
    2013 or 2016
    Posts
    115

    Re: MIN IF for multiple criteria in the same column

    Quote Originally Posted by José Augusto View Post
    HI

    If your data is in B3:C10 (row 2 has headers) use the following formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you, but that returns the 03/19/19 date for test6 which was "SAT", not the 03/05/19 date that is needed. The formula still excludes the results that were coded as "PART."

  5. #5
    Forum Contributor
    Join Date
    02-14-2013
    Location
    Biloxi, Ms
    MS-Off Ver
    2013 or 2016
    Posts
    115

    Re: MIN IF for multiple criteria in the same column

    Quote Originally Posted by Phuocam View Post
    Try

    {= MIN(IF((B2:B8="SAT")+(B2:B8="PART"),C2:C8))}
    That did it perfectly, thank you.

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: MIN IF for multiple criteria in the same column

    Hi

    To correct my formula in post #2 (I forgot the "OR")

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Replies: 9
    Last Post: 12-10-2018, 03:01 PM
  2. [SOLVED] Countifs multiple criteria- criteria if cell is greater than another i adjacent column
    By Sircool1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2018, 11:23 AM
  3. Formula for summing on multiple row criteria and a dynamic column criteria
    By ianswilson815 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2016, 01:58 PM
  4. Replies: 9
    Last Post: 07-23-2015, 01:21 PM
  5. [SOLVED] Multiple Criteria SUMIF Using Column as Negative Criteria
    By freybe06 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2014, 04:46 PM
  6. Replies: 6
    Last Post: 08-04-2013, 11:53 AM
  7. Replies: 2
    Last Post: 10-05-2011, 12:43 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