+ Reply to Thread
Results 1 to 5 of 5

Matching two columns and finding the minimum value in a third column

  1. #1
    Registered User
    Join Date
    06-24-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Matching two columns and finding the minimum value in a third column

    I am trying to match a project code name in one column with a condition field in another column and then return the smallest value, which is a date.

    So if the project is C4 and the condition is "execute" there may be four or more records that meet this, but I want to return the first instance of this occurring by minimizing the date column.

    What I have done so far that finds the first record, but not the smallest is :
    [code]=INDEX(A2:C9,MATCH(A14&B14,B2:B9&C2:C9,0),1)

    I think I need a MIN function somewhere, but haven't been able to get it to work.

    Help is appreciated...
    Attached Files Attached Files
    Last edited by pjtarheel; 06-24-2011 at 05:23 PM.

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

    Re: Matching two columns and finding the minimum value in a third column

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    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
    06-24-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Matching two columns and finding the minimum value in a third column

    Thanks, hopefully this makes it more clear. I want the smallest value returned in the report date column.

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

    Re: Matching two columns and finding the minimum value in a third column

    Try:

    =MIN(IF($B$2:$B$9=A14,IF($C$2:$C$9=B14,$A$2:$A$9)))

    confirmed with CTRL+SHIFT+ENTER not just ENTER.

  5. #5
    Registered User
    Join Date
    06-24-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Matching two columns and finding the minimum value in a third column

    Thanks, looks like it's working.

+ 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