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...
Last edited by pjtarheel; 06-24-2011 at 05:23 PM.
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!
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Thanks, hopefully this makes it more clear. I want the smallest value returned in the report date 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.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Thanks, looks like it's working.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks