Populate Dates Based on Year Selected

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
Office Version
  1. 365
Hi ,

I have the following table:

Lifetime Planner_v1.0.xlsx
CDEFG
2DateStart Year201017/10/2010
317/10/2010End Year201130/10/2021
418/10/2021
519/10/2021
620/10/2021
721/10/2021
822/10/2021
923/10/2011
1024/10/2021
1125/10/2021
1226/10/2021
1327/10/2019
1428/10/2021
1529/10/2021
1630/10/2021
Sheet1


The data table is in column C

I am trying to build a formula so that when I choose the start year and end year in cell F2 and F3, the formula will populate the first date for the start year and the last date for the end year.

In the above example, the first date for the start year is 17/10/2010 and the end date for the end year is 30/10/2021.

Is this possible ?

Thank you in advance for all the help.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
.. the end date for the end year is 30/10/2021.
That does not look correct to me since your end year is 2011. Try these

21 10 17.xlsm
CDEFG
2DateStart Year201017/10/2010
317/10/2010End Year201123/10/2011
418/10/2021
519/10/2021
620/10/2021
721/10/2021
822/10/2021
923/10/2011
1024/10/2021
1125/10/2021
1226/10/2021
1327/10/2019
1428/10/2021
1529/10/2021
1630/10/2021
Dates
Cell Formulas
RangeFormula
G2G2=AGGREGATE(15,6,C3:C16/(YEAR(C3:C16)=F2),1)
G3G3=AGGREGATE(14,6,C3:C16/(YEAR(C3:C16)=F3),1)
 
Upvote 0
Solution
Hi Peter,

That worked. Thank you for your valuable time and patience. Appreciate it and have a great day ahead.
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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