+ Reply to Thread
Results 1 to 4 of 4

Two Criteria MIN function

Hybrid View

  1. #1
    Registered User
    Join Date
    12-19-2008
    Location
    canada
    MS-Off Ver
    2007
    Posts
    10

    Two Criteria MIN function

    Hi,

    I kindly seek the wisdom of the excel gurus. I am stuck and I would sincerely appreciate some guidance.

    Here is my issue:

    I am analyzing quotations from multiple vendors, for multiple products.
    Some of the quotes are valid, and others are deemed invalid (by me). I need a function to find the MIN value of the valid quotes for the given Product.

    I am able to find the MIN value without taking into consideration the quote's validity, but doing so will give me false results. I could go through and manually remove all the invalid quotes, but I would prefer to do it with a formula.

    I've tried using the AND function, but to no avail. (=MIN(IF(AND(Rangeof Products=SelectedProduct,RangeofValidquotes="yes"),Range of Quoted prices))

    I've attached an example for more detail.

    Thank you again!

    J
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Two Criteria MIN function

    Using AND clause in Arrays/Sumproducts is slightly different, eg:

    =MIN(IF(($B$7:$B$15="A")*($F$7:$F$15="Yes"),$G$7:$G$15))
    committed with CTRL + SHIFT + ENTER

    so in basic syntax terms:

    =MIN(IF((test1)*(test2),range))
    CSE

    or if preferred

    =MIN(IF(test1,IF(test2,range)))
    CSE

    (no need to worry about FALSE condition as the Array will populate with Boolean FALSE as opposed to a number where result of IF not TRUE - and Booleans will be ignored in the MIN test)

  3. #3
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Two Criteria MIN function

    =MIN(IF(($B$7:$B$15=B7)*($F$7:$F$15="Yes"),$D$7:$D$15,""))
    CSE entered
    Last edited by squiggler47; 05-15-2009 at 12:03 PM.
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  4. #4
    Registered User
    Join Date
    12-19-2008
    Location
    canada
    MS-Off Ver
    2007
    Posts
    10

    Re: Two Criteria MIN function

    Awesome! thank you!

    Approach number 1 dint work,
    =MIN(IF(($B$7:$B$15=B7)*($F$7:$F$15="Yes"),$D$7:$D$15,""))

    But approach number 2 was perfect.

    THank you again,

    J.

+ 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