Can I combine MIN with an Index Match array?

bradams

New Member
Joined
Oct 23, 2012
Messages
40
My data set has a list of people with an assignment date. Each person can have multiple assignment dates. I need to find the earliest assignment date for each person. I am trying to solve this by first doing an index match array formula to identify all the assignment dates and then applying a MIN function to those results. It's not working as it is returning the first date it finds. For this example I'll just use assignment year.


ABCD
NameAssignment YearNameEarliest Assignment
1John2019John< Formula >
2Bill2015
3John2017
4Nancy2016
5John2018

<tbody>
</tbody>

This is the closest I've come for the formula in D1 but, as I said, it's returning the first year matching John (2019), not the earliest year (2017).

{MIN(Index(B1:B5,MATCH(C1,A1:A5,0),1))}



As a one-off I could sort by assignment date but this is an ongoing report so I'm trying to automate this as much as possible. I cannot force the database to return the data pre-sorted and, honestly, cannot figure out how the data is being sorted.

Thanks in advance!
 
Last edited:

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.
Try:

ABCDE
1NameAssignment YearNameEarliest Assignment
2John2019John20172017
3Bill2015
4John2017
5Nancy2016
6John2018

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
E2=MINIFS(B:B,A:A,C2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
D2{=MIN(IF($A$2:$A$6=C2,$B$2:$B$6))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



The MINIFS is available in Excel 365.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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