I have tried it in Excel 2010, but I think there will be no significant difference in Excel 2013.
- Create a list of all eventually possible values (for example 0-1000). Assume that the values are located at
H1:H1001
. - Choose a cell in which a threshold will be held. Suppose it will be
F3
. - Restrict possible values in
F3
.- Select
F3
. - On the Data menu, click Validation.
- In the Allow box, click List.
- Uncheck the In-cell drop-down check box.
- In the Source box, enter
=H1:H1001
.
- Select
- Create a drop-down menu for a given cell.
- Select a given cell.
- On the Data menu, click Validation.
- In the Allow box, click List.
- Check the In-cell drop-down check box.
- In the Source box, enter
=INDIRECT("H1:H"&(F3+1))
.
- Voilà!
Here is a working example. Feel free to download it.
INDIRECT
function accepts a string reference to a range and returns the range itself. So if value stored in F3 were 27, the function, as used here, would return a range from H1 to H28 (thus possibilities in the drop-down list would be 0-27).