Forum Discussion
SteveBoat
Jul 19, 2021Copper Contributor
Find the next date greater than today from a range
I have a range of cells with dates. Some dates are older than today, some are today and several are greater than today. I want to find the next date that is greater than today. E.g. Today is 7/15 ...
- Jul 19, 2021
SergeiBaklan
Jul 19, 2021Diamond Contributor
- SteveBoatJul 19, 2021Copper ContributorNot sure how to referece the range. When I put in A1:A20 I get a #NAME? result.
- SergeiBaklanJul 19, 2021Diamond Contributor
- SteveBoatJul 19, 2021Copper ContributorPerfect! The AGGREGATE function seems to do it well.
Thank you very much.
- SergeiBaklanJul 19, 2021Diamond Contributor
You may use direct reference
=XLOOKUP(TODAY()+0.1,A1:A20,A1:A20,,1)
assuming XLOOKUP is available in your version of Excel.