Forum Discussion
Data validation range based on another cell contents
- Dec 21, 2022
Split the min and max values into separate columns:
Next, select D5:D10.
On the Data tab of the ribbon, click Data Validation.
Select Decimal from the Allow drop down, and between from the Data drop down.
In the Minimum box, enter the formula =VLOOKUP(C5,$C$15:$F$20,3,FALSE)
In the Maximum box, enter the formula =VLOOKUP(C5,$C$15:$F$20,3,FALSE)
If desired, activate the Input Message and Error Alert tabs and enter appropriate messages.
Finally, click OK.
See the attached workbook.
That is called a dependent data validation drop-down. It requires a different technique.
- HansVogelaarMar 26, 2024MVP
If you include blanks in the list (which I don't recommend), and if the active cell is blank, Excel will select the first blank in the list when you click the drop-down arrow. If the cell is not blank, Excel will select the current value in the list.
Which version of Excel do you use?
- AOSPWBMar 28, 2024Brass ContributorSo, I have taken out the blanks in the tables so that is no longer an issue, but any reason why the "autocomplete" is not working? Be great if they could start to type and it would give suggestions to help speed up the process.
- HansVogelaarMar 28, 2024MVP
- AOSPWBMar 28, 2024Brass Contributorapologies for delay - 'life'.... we are using office 365 and I have blanks in the table because I am trying to allow this thing to grow as we need it and I know each site will have areas added and easier for someone to pick a blank, type in a new option than try to redo lists, etc. But if it is going to cause massive issues, then I will eliminate the blanks and my team will just need to monitor.