Year Dropdown (values change in future)

duteberta

Board Regular
Joined
Jun 14, 2009
Messages
87
Office Version
  1. 365
Platform
  1. MacOS
Is there a way to create a dropdown of YEAR values whose MIN is any given year (say 2013) and whose MAX value dynamically changes to the Current year + 1?

So let's say that today is in 2024 so the dropdown would show values descending from 2025-2013. Then next year those same dropdown values would AUTOMATICALLY change to 2026-2013. I want this to happen without adjusting the code every year. Hopefully no VBA on this- but if need be then ok.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
You can create a list like
Excel Formula:
=LET(y,YEAR(TODAY())+1,m,2013,SEQUENCE(y-m+1,,y,-1))
and then refer to the cell in datavalidation.
Fluff.xlsm
ABC
1Years
220252024
32024
42023
52022
62021
72020
82019
92018
102017
112016
122015
132014
142013
15
Sheet5
Cell Formulas
RangeFormula
A2:A14A2=LET(y,YEAR(TODAY())+1,m,2013,SEQUENCE(y-m+1,,y,-1))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
C2List=$A$2#
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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