Forum Discussion
allieZ
May 20, 2022Copper Contributor
Auto populate same date, next coming year
Hello Excel Community! I keep finding something SIMILAR to what I need, but not exactly. I have a list of contract dates in oldest to newest order. I need excel to automatically find the s...
mathetes
May 20, 2022Silver Contributor
Here's a quick and dirty formula. If you need something more sophisticated, come back with the details. A3 in this example is the prior contract end date.
=IF(A3+365.25>TODAY(),A3+365.25,DATE(YEAR(TODAY()),MONTH(A3),DAY(A3)))
allieZ
May 20, 2022Copper Contributor
I think this works perfectly! Took a second to really understand how this formula is working, but I think i got it.
Thank you!
Thank you!
- mathetesMay 20, 2022Silver ContributorBasically it says
IF the date created when you add 365.25** to A3 is greater than today, then use that date because it is in the future,
ELSE, create a date using today's year and the month and day from A3.
**To account for leap years, that was a way I used to do it when writing programs in Basic, 50 years ago.