How to generate dynamic drop down
Hi,
I have a list of Pincodes, Area, City and State names. (Total rows are some 150000) Now, when i select Pincode, in the next column, i need Area to be a drop down which is generate dynamically based on pincode selected. Can you guys please help me. Thanks Anil Hungund. |
How to generate dynamic drop down
Hi,
I have a list of Pincodes, Area, City and State names. (Total rows are some 150000) Now, when i select Pincode, in the next column, i need Area to be a drop down which is generate dynamically based on pincode selected. Can you guys please help me. Thanks Anil Hungund. See here... https://www.contextures.com/exceldat...nddynamic.html -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
How to generate dynamic drop down
Thanks for quick response, But for some reason Filter function is not working for me. is there any alternative. On Thursday, 2 April 2020 16:55:31 UTC+5:30, GS wrote: Hi, I have a list of Pincodes, Area, City and State names. (Total rows are some 150000) Now, when i select Pincode, in the next column, i need Area to be a drop down which is generate dynamically based on pincode selected. Can you guys please help me. Thanks Anil Hungund. See here... https://www.contextures.com/exceldat...nddynamic.html -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
How to generate dynamic drop down
But for some reason Filter function is not working for me. is there any
alternative. What does the Filter function do, exactly? If you are using the 'Dependant Dropdowns' example I linked to.., there is no Filter function. As you describe what you want to do, each Pincode selected must also be the DefinedName of the range that contains its dropdown list. If the list is NOT on the sheet containing the Dependant Dropdowns, the DefinedName must be workbook level (global scope). Otherwise, the DefinedName can be sheet level (local scope) -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
how to create a dynamic drop down list in excel
To create a dynamic dependent drop down list in Excel, carry out these steps:
1. Get items for the main drop down list For starters, we shall extract all different fruit names from column A. This can be done by using the UNIQUE function in its simplest form - supply the fruit list for the first argument (array) and omit the remaining optional arguments as their defaults work just fine for us: 2. Create the main drop down To make your primary drop-down list, configure an Excel Data Validation rule in this way: Select a cell in which you want the dropdown to appear (D3 in our case). On the Data tab, in the Data Tools group, click Data Validation. In the Data Validation dialog box, do the following: Under Allow, select List. In the Source box, enter the reference to the spill range output by the UNIQUE formula. For this, type the hash tag right after the cell reference, like this: =$G$3# This is called a spill range reference, and this syntax refers to the entire range regardless of how much it expands or contracts. Click OK to close the dialog. Get items for the dependent drop down list To get entries for the secondary dropdown menu, we'll filter the values in column B based on the value selected in the first dropdown. This can be done with the help of another dynamic array function called FILTER: =FILTER(B3:B15, A3:A15=D3) Where B3:B15 are the source data for your dependent drop down, A3:A15 are the source data for your main dropdown, and D3 is the main dropdown cell. To make sure the formula works correctly, you can select some value in the first drop-down list and observe the results returned by FILTER. Make the dependent drop down To create the second dropdown list, configure the data validation criteria exactly as you did for the first drop down at step 2. I hope this helps! Tim Paine |
All times are GMT +1. The time now is 02:10 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com