Drop down list of a series of numbers based on cell value

SamPer

New Member
Joined
Aug 27, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am hoping to create a drop down list that automatically updates based on a single cell's value.

For instance if cell A1 = 4, the drop down list options are whole numbers: 1,2,3,4. If cell A1 is changed to 10, the drop down list options are changed to: 1,2,3,4,5,6,7,8,9,10.

Any help is appreciated. TIA!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Welcome to the MrExcel board!

Use the SEQUENCE function like I have in D1 (can be anywhere and the column can then be hidden) and set up the Data Validation as shown for B1

21 08 28.xlsm
ABCD
141
22
33
44
5
6
7
Sheet2 (3)
Cell Formulas
RangeFormula
D1:D4D1=SEQUENCE(A1)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B1List=D1#


1630128642474.png
 
Upvote 0
Solution

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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