Jul 19 2023 12:52 PM
I have an application where I want to auto populate a cell with a drop down from a (column) table when a certain value is chosen in a third cell. This is so the User can only make a selection from the options that are limited to the specific Manufacturer they choose. Any thoughts?
Jul 19 2023 12:57 PM
SolutionJul 19 2023 01:38 PM
Thank you very much. That is exactly what I needed! @HansVogelaar
Jul 25 2023 07:08 AM
Jul 25 2023 07:29 AM
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
Jul 25 2023 07:34 AM
Here you are, sir. So you are aware, SHEET2 is actually the sheet labeled DO NOT DELETE. @HansVogelaar
Jul 25 2023 08:06 AM
See the attached version. I created several defined names to make it work - see Formulas > Name Manager.
Note: there doesn't appear to be a range for FBS, so you won't see a drop down list in C19 if you select FBS in C8.
Jul 25 2023 08:32 AM
Jul 25 2023 11:31 AM
There is no formula in C19.
Select that cell and then click Data Validation on the Data tab of the ribbon.
You'll see that the Source of the data validation list is a formula.
Jul 25 2023 11:38 AM
Jul 26 2023 09:00 AM
Jul 26 2023 11:41 AM
Let's look at an example.
One of the manufacturers is Medallion Gold. The list of corresponding items is in the Medallian Gold column of the table named Table35 on the DO NOT DELETE sheet.
I selected that column (not including the column header), then clicked in the name box on the left hand side of the formula bar and typed typed the name Medallion_Gold and pressed Enter. Note that I replaced the space with an underscore; this is necessary because defined named cannot contain spaces.
The defined name now appears in Name Manager (available on the Formulas tab of the ribbon):
I similarly created names for each of the manufacturers (except for FBS since I couldn't find the corresponding items), if they didn't exist already. The names must correspond exactly to the names of the cabinet manufacturers, with spaces replaced with underscores.
Next, I created a data validation rule for C19 on the Phase 1 sheet:
The source of the drop down list is =INDIRECT(SUBSTITUTE(C8, " ", "_"))
This takes the name of the selected manufacturer, and replaces any spaces (if present) to underscores.
INDIRECT then converts this name to a reference to the corresponding named range.
So if you select Matsercraft in C8, the list in C19 is based on the range named Mastercraft.
And if you select Medallion Gold, the list is based on the range named Medallion_Gold.
Does that help?
Jul 26 2023 01:05 PM
Yes it does help. Thank you. My worksheet has other options for the varying Manufacturers that are included in other ares. (Drawer Box Type, Rollout Type, Drawer Glide, Hinge Type.) I have created and will create lists on the 'DO NOT DELETE' sheet with the different options for each Manufacturer. I would like to auto populate those cells with a drop down from the options on the sheet. Is that possible? If so, how do I do it? I have included a copy of the Worksheet again so you can see what I am referring to. Thanks again! @HansVogelaar
Jul 26 2023 01:27 PM
You'd have to create names such as Medallion_Silver_Drawers and Medallion_Gold_Drawers for this to work.
The data validation of C28 could then have as source
=INDIRECT(SUBSTITUTE(C8, " ", "_")&"_Drawers")
Jul 26 2023 01:47 PM
Jul 19 2023 12:57 PM
Solution