Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2018, 04:41 PM
jwan142 jwan142 is offline dynamic dependent drop down list based on input with reference to a two column table Windows 7 64bit dynamic dependent drop down list based on input with reference to a two column table Office 2010 64bit
Novice
dynamic dependent drop down list based on input with reference to a two column table
 
Join Date: May 2018
Posts: 2
jwan142 is on a distinguished road
Default dynamic dependent drop down list based on input with reference to a two column table

Hi Excel Masters and Gurus,

new to the forum, a big warm "hi" to everyone.

i have been struggling int he past few weeks to build a sound "simple" data validation rule helps the user to enter data in a controlled fashion.

in a nutshell, i have got a reference table of two columns, Continent and Country. The data in these two columns are not sorted.





Column A Column B
Continent Country
Africa Angola
Africa Egypt


Asia Japan
Europe UK
America Canada
Europe France
Europe Italy
Oceania Australia
Asia Korea
Oceania NZ
America USA
Africa Kenya

what i love to create is a two input field,

after user enter the continent field, the next field automatically filters out the options based on the reference list. Say enter "Asia" in range D4 (as shown in picture), Range E5 has a drop down list of "Japan" and "Korea" only. Also, if an invalid data of "Continent" entered in D4, the drop down list in E5 shows "No valid data found"

i have seen quite few tutorials about utilizing OFFSET or Indirect Function, but all seem to need either the reference table to be sorted or transformed into a single column table.

Any thoughts?

Much appreciate your response.
Reply With Quote
  #2  
Old 05-16-2018, 10:13 PM
ArviLaanemets ArviLaanemets is offline dynamic dependent drop down list based on input with reference to a two column table Windows 8 dynamic dependent drop down list based on input with reference to a two column table Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

In linked thread I posted worksheet where on sheet Report persons are selected depending on previously selected organization. Depending on organization selected, on sheet Hidden a list of persons from this organization is calculated. This list is used as Data Validation source to select person.

https://www.msofficeforums.com/excel...oint-data.html
Reply With Quote
  #3  
Old 05-17-2018, 04:28 PM
jwan142 jwan142 is offline dynamic dependent drop down list based on input with reference to a two column table Windows 7 64bit dynamic dependent drop down list based on input with reference to a two column table Office 2010 64bit
Novice
dynamic dependent drop down list based on input with reference to a two column table
 
Join Date: May 2018
Posts: 2
jwan142 is on a distinguished road
Default Thanks for your reply. But...

Thanks for your reply. i downloaded the example you pointed me to. However, the example spreadsheet seems to have the data available in multiple tabs (tables). I would love to filter the data based on 1 table (2 columns, continuing rows) but not sorted... hope what i am saying here makes sense
Reply With Quote
  #4  
Old 05-17-2018, 10:51 PM
ArviLaanemets ArviLaanemets is offline dynamic dependent drop down list based on input with reference to a two column table Windows 8 dynamic dependent drop down list based on input with reference to a two column table Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

This example worksheet was created for another purpose, cascaded validation lists were a byproduct. You can ignore all except:
1. On sheet Persons columns PersonName and PersonOrganization. This matches with your Continent-Country list.
2. On sheet Organizations column OrgName. You have to replace this with list of continents. As this list hardly changes ever, you can later hide the sheet with continents list, or you can enter the list of continents directly as data validation list source, and drop the Continents sheet at all. But this may mean more work when designing the application.
3. Sheet Hidden is essential, as here the list of persons (countries) belonging to selected organization (continent) is generated. as the name suggests, this sheet is meant to be hidden from users. NB! This example was created to select organization and person in 2 cells! For cascading data validation lists used in tables, slightly different approach is needed - on this hidden sheet is calculated a table with a column for every continent, and into every column a list of countries from this continent. And for table where you want to select country for selected continent, you have to define a dynamic named range which returns the list of countries for selected continent from proper column of this Hidden sheet. In your opening post you did write "two input field" - when you really want two table columns, then let me know.

Quote:
I would love to filter the data based on 1 table (2 columns, continuing rows) but not sorted...
You'll have a sheet with list of countries by continent and your main sheet where you select continent and country visible. You can't have those 2 in one and have any working formulas!. And as minimum you'll have one hidden sheet, which must not bother you at all.
Reply With Quote
  #5  
Old 05-23-2018, 08:15 AM
Roger Govier Roger Govier is offline dynamic dependent drop down list based on input with reference to a two column table Windows 10 dynamic dependent drop down list based on input with reference to a two column table Office 2016
Novice
 
Join Date: Oct 2017
Location: Abergavenny, Wales, UK
Posts: 13
Roger Govier is on a distinguished road
Default

Hi

Why make life difficult for yourself by continuing with a two column unsorted table?
You could easily extract a list of countries belonging to each Continent to create 5 individual tables.
Then you can achieve what you want very easily as described in a Tutorial I posted here
http://www.contextures.com/exceldata...sindirect.html
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase number in cell, based on value in adjacent cell scottyb Excel 3 02-02-2017 03:51 AM
Help with Vlookup in a Dependent drop down list angelmr Excel 0 11-29-2016 09:25 AM
Get all rows based on input values from a list soolsen Excel 1 03-27-2016 08:11 PM
How to "hard link" two adjacent cells to a data validation drop down list? Geza59 Excel 10 10-19-2012 11:56 AM
Conditional Formatting Expiration Dates Based on Text in Adjacent Cell Frogggg Excel 1 10-25-2011 08:44 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft