Dynamic dropdown list

Martin_H

Board Regular
Joined
Aug 26, 2020
Messages
190
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have 2 dropdown lists in cell A2 and B2. Both dropdown lists shows week numbers from 1 to 53. Column A is a starting point (FROM) and Column B is a ending point (TO).

Untitled.png


Dropdown list in A2 will always shows all weeks (from 1 to 53) but dropdown list in B2 will only show weeks that are greater or equal to current A2 selection.

For example, if I choose WEEK 10 in dropdown list A2 I want to see only WEEK 10 and greater in dropdown list B2.

Is is possible?


Thank you!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How are you populating the DV in col A?
 
Upvote 0
All week numbers are written on another sheet and I am using this sheet as a source for both dropdown lists.
 
Upvote 0
What is the name of the sheet & what cells are the week numbers in?
 
Upvote 0
sheet is called Week_list and week numbers are in the cells A1:A53.
 
Upvote 0
Ok, cant remember if this works with 2016.
Open the Name & create a new name & in the refers to box put
Excel Formula:
=INDEX(INDEX(Week_List!$A$1:$A$53,MATCH(Main!$A2,Week_List!$A$1:$A$53,0)):Week_List!$A$53,)
Change Main! to the name of the worksheet with the drop down.
Then in the DV on B2 for the source use
Excel Formula:
=Weeks
or whatever name you used.
 
Upvote 0
Thank you for your time.

I am getting this "The Source currently evaluates to an error. Do you want to continue?" after inserting DV with =weeks.
 
Upvote 0
If you select a week in A2 , does the DV in B2 work & give you a list of weeks?
 
Upvote 0
Ok, sounds as though that doesn't work with 2016, change the formula in the name to
Excel Formula:
=OFFSET(Week_List!$A$1,MATCH(Main!$A2,Week_List!$A$1:$A$53,0)-1,,COUNTA(Week_List!$A$1:$A$53)-MATCH(Main!$A2,Week_List!$A$1:$A$53,0)+1)
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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