numeric dropdown, with upper limit defined by another cell

rjplante

Well-known Member
Joined
Oct 31, 2008
Messages
569
Office Version
  1. 365
Platform
  1. Windows
I would like to create a numeric drop down menu with number values in it (1, 2, 3,...). I have another cell with a value in it (for this example = 6). I would like the numeric value of the drop down to only show values 1-6 when the drop down is selected. Is this possible?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Here is an example

Book2
GHIJK
1Max ValPulldownList
2641
32
43
54
65
76
Sheet5
Cell Formulas
RangeFormula
K2:K7K2=SEQUENCE(MaxVal)
Dynamic array formulas.
Named Ranges
NameRefers ToCells
MaxVal=Sheet5!$G$2K2
Cells with Data Validation
CellAllowCriteria
I2List=K2#
J2List=SEQUENCE(H2)
 
Upvote 0
Solution
Thanks for the response. I got it to work although I do not know what Cell J2 is used for in the Cells with validation table, nor do I understand why it is =SEQUENCE(H2). What is happening in H2? When I applied the formula =K2# in the Source field for the validated cell, it worked great.
 
Upvote 0
Oops, I was trying something out and I forgot to erase the cell J2. You got it right
 
Upvote 0
Thanks for the explanation. We can all just add that array function in validation fields as one of the thousand things that could be done to make Excel even better.
 
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,073
Members
449,093
Latest member
ripvw

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