Formula to select the earliest date

exalex

New Member
Joined
Nov 1, 2017
Messages
24
[TABLE="width: 197"]
<tbody>[TR]
[TD]
Person[/TD]
[TD]Date[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD="align: right"]2/21/2019[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]85[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD="align: right"]4/6/2018[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]Andy[/TD]
[TD="align: right"]6/1/2019[/TD]
[TD="align: right"]23[/TD]
[/TR]
[TR]
[TD]Andy[/TD]
[TD="align: right"]4/1/2018[/TD]
[TD="align: right"]15[/TD]
[/TR]
</tbody><colgroup><col><col><col></colgroup>[/TABLE]


I want a formula to pull the earliest date and amount for that per person:

Output: need formula for below Date and amount.
[TABLE="width: 197"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Date[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]85[/TD]
[/TR]
[TR]
[TD]Andy[/TD]
[TD="align: right"]4/1/2018[/TD]
[TD="align: right"]15[/TD]
[/TR]
</tbody><colgroup><col><col><col></colgroup>[/TABLE]
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Book1
ABC
1PersonDateAmount
2Jim2/21/201915
3Jim1/1/201885
4Jim4/6/201811
5Andy6/1/201923
6Andy4/1/201815
7
8
9PersonDateAmount
10Jim1/1/201885
11Andy4/1/201815
Sheet1


In B10 control+shift+enter, not just enter, and copy down:

=MIN(IF($A$2:$A$6=A10,$B$2:$B$6))

In C10 control+shift+enter, not just enter, and copy down:

=INDEX($C$2:$C$6,MATCH(A10,IF($B$2:$B$6=B10,$A$2:$A$6),0))
 
Upvote 0
For some reason it is not working. any idea what the issue could be? Why control+shift+enter?

Because these are array-processing formulas...

Control+shift+enter: Press down the control and the shift keys while you hit the enter key. If done successfully, Excel itself puts a pair of { and } around the formula in recognition.
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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