Find earliest date of year in list

mattbnorris

New Member
Joined
Sep 17, 2019
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Hello!

I've got a list of dates that span across multiple years. Is there a formula I can use to find the earliest date available in each year?

E.g. from the dates below I would want the formula to return 06/01/2021, 30/03/2020 and 10/05/2019

Dates
15/01/2021
08/01/2021
07/01/2021
06/01/2021
04/12/2020
15/09/2020
30/03/2020
09/09/2019
10/05/2019

Any help would be greatly appreciated!

Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
If you have Excel 365, try
Excel Formula:
=MINIFS(A2:A10,A2:A10,">="&DATE(UNIQUE(YEAR(A2:A10)),1,1),A2:A10,"<"&DATE(UNIQUE(YEAR(A2:A10)),12,32))
 
Upvote 0
Assuming your example dates themselves are in cells A2:A10 and your years to test for are in B2 (2019), B3 (2020) and B4 (2021), give this array-entered** formula a try...
Excel Formula:
=MIN(IF(YEAR(A$2:A$10)=B2,A$2:A$10))
**Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself
 
Upvote 0
Solution
DatesYearEarliest
15/01/2021202106/01/2021
08/01/2021202030/03/2020
07/01/2021201910/05/2019
06/01/2021
04/12/2020
15/09/2020
30/03/2020
09/09/2019
10/05/2019

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table13"]}[Content],
    Year = Table.AddColumn(Source, "Year", each Date.Year([Dates]), Int64.Type),
    Group = Table.Group(Year, {"Year"}, {{"Earliest", each List.Min([Dates]), type datetime}}),
    Type = Table.TransformColumnTypes(Group,{{"Earliest", type date}})
in
    Type
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

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