+ Reply to Thread
Results 1 to 3 of 3

Conditional Min function

  1. #1
    Registered User
    Join Date
    04-11-2007
    Posts
    82

    Conditional Min function

    Hi Excel Experts!

    I was hoping you could help me figure out how I could get a min function based on certain conditions to work..

    Here is what I have:

    25 NO 12/0207
    25 maybe 12/03/07
    25 YES 12/0607
    30 NO 12/04/07
    30 YES 12/03/07
    25 some 12/0407

    I am trying to find a formula that will give me the oldest date from column "c", if both conditions in column a & b are met, if the conditions are not met, then it should find the oldest date where the conditions are met.

    So, if column a= "25", and column b does not= "no", then give me the date that corresponds with that row. in this case the answer would be: 12/03/07


    Thank you guys soo much!

    I've been racking my brain with this one.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try something like:

    =MIN(IF(A1:A100=25,IF(B1:B100<>"No",C1:C100)))

    adjust the ranges to suit your data.

    The formula must be confirmed with CTRL+SHIFT+ENTER
    not just ENTER.. you will see { } brackets appear around it.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-11-2007
    Posts
    82

    Conditional MIn Function

    OMG!!!! it always is that simple isn't it.

    I tried everything but a 2nd if....


    Thanks sooo much!! You're the greatest!

+ 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. Can I place a function call withing SQL Statements?
    By ions in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2008, 10:24 PM
  2. Conditional formulas within IF function
    By tempco in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-04-2008, 01:31 AM
  3. Exit Function doesn't break out of For loop?
    By odeno in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2007, 11:51 AM
  4. User Defined Function (UDF) in a shared workbook
    By arizenn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2007, 11:19 AM
  5. Using IF Function with conditional formatting
    By new2XL in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-30-2006, 01:40 AM

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