smallest out of all index-match results

Raykage

New Member
Joined
Jul 18, 2016
Messages
2
Hi guys,

I have 2 columns (part number A1:A100 and date B1:B100).
On second sheet I have just a column with part numbers F1:F10.

I want to have a second column G1:G10 in which each cell checks the part number in the F column,
does an index match on the A and B columns to get the earliest date of that part number.
It would have to be a formula which can provide all index match results and get the earliest date by =min or =small
or something like that. Unfortunately I've got no idea if it's possible or if there is any other way, since index-match only give the first result.

Any ideas?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the forum.

If you're using the most up-to-date version of Excel, the easiest solution in MINIFS. There are other solutions for old Excel (prior to 2013 version).

I included error-checking to account for Part Numbers you might look up that are not in the Data in Columns A and B, in which case the formulas report blanks ("").

ABCDEF
1PartDatePartEarliest (MINIFS)Earliest (AGGREGATE)
217/18/201617/18/20167/18/2016
317/19/20162
437/20/201637/20/20167/20/2016
557/21/20164
667/22/201657/21/20167/21/2016
767/23/201667/22/20167/22/2016
887/24/20167
987/25/201687/24/20167/24/2016
1087/26/201697/27/20167/27/2016
1197/27/2016

<tbody>
</tbody>
Sheet25

Worksheet Formulas
CellFormula
E2=IF(MINIFS($B$2:$B$11,$A$2:$A$11,D2)=0,"",MINIFS($B$2:$B$11,$A$2:$A$11,D2))
F2=IFERROR(AGGREGATE(15,6,1/($A$2:$A$11=D2)*$B$2:$B$11,1),"")

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0
Thank you DRSteele!! That's exactly what I was looking for (I'm surprised that it's so easy, I didn't know MINIFS)
Thanks for the effort!!
 
Upvote 0
You're welcome. I'm glad it worked out for you. Don't forget about MAXIFS and AVERAGEIFS - they're as useful as MINIFS.

If you like Excel, keep coming back to this forum for answers. And check out this channel on youtube - it's very informative and it has billions and billions of videos on how to drive Excel. https://www.youtube.com/user/ExcelIsFun
 
Upvote 0

Forum statistics

Threads
1,215,596
Messages
6,125,726
Members
449,255
Latest member
whatdoido

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top