SOLVED

Dropdown dependency (difficult with INDIRECT)

%3CLINGO-SUB%20id%3D%22lingo-sub-2113314%22%20slang%3D%22en-US%22%3EDropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113314%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20problem%2C%20which%20is%20bugging%20me%20for%20some%20hours%20now.%20I%20basically%20have%20a%20data%20sheet%2C%20which%20has%20the%20columns%3A%3C%2FP%3E%3CUL%3E%3CLI%3ERole%3CUL%3E%3CLI%3Eexamples%3A%20Architect%2C%20Engineer%20etc.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EPosition%3CUL%3E%3CLI%3Eexamples%3A%20Solution%20Architect%20XYZ%2C%20Cloud%20Engineer%20ABC%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThis%20data%20sheet%20will%20be%20populated%20with%20multiple%20positions%2C%20which%20are%20of%20a%20particular%20role%20type.%20The%20entries%20for%20Role%20and%20Position%20come%20from%20named%20ranges.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20I%20have%20another%20sheet%2C%20where%20I%20maintain%20the%20candidates%2C%20which%20applied%20for%20a%20position.%20So%2C%20I%20basically%20want%20to%20add%20entries%20to%20that%20sheet%2C%20which%20now%20has%20the%20columns%20Candidate%2C%20Role%2C%20Position.%20The%20role%20dropdown%20should%20only%20include%20entries%2C%20which%20exist%20in%20the%20data%20sheet%20(so%20not%20just%20the%20total%20of%20the%20named%20range%20for%20role%20but%20the%20ones%26nbsp%3B%20that%20have%20been%20picked%20in%20the%20data%20sheet)%20with%20the%20corresponding%20positions%20(so%2C%20again%20a%20subset%20of%20the%20named%20range%2C%20which%20exists%20in%20the%20data%20sheet).%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EDo%20you%20have%20an%20idea%20on%20how%20to%20solve%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2113314%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113890%22%20slang%3D%22en-US%22%3ERe%3A%20Dropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113890%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F954175%22%20target%3D%22_blank%22%3E%40nailuenlue%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20fully%20expected%20you%20to%20have%20to%20make%20some%20modifications.%20I%20was%20only%20trying%20(without%20knowing%20the%20full%20picture)%20to%20give%20an%20idea%20of%20how%20the%20task%20could%20be%20accomplished.%20Glad%20it%20helped.%20And%20I'm%20sure%20you%20have%20noticed%20that%20INDIRECT%20did%20make%20a%20showing.......in%20the%20final%20data%20validation%20formula.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113875%22%20slang%3D%22en-US%22%3ERe%3A%20Dropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113875%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20slight%20modifications%20but%20your%20proposal%20was%20a%20big%20help.%20Thanks%20a%20lot!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113633%22%20slang%3D%22en-US%22%3ERe%3A%20Dropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113633%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%20for%20putting%20the%20time%20in%20to%20provide%20help%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%20Really%20appreciate%20it!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20problem%20is%20really%20that%20the%20roles%20in%20the%20raw%20data%20has%20to%20come%20from%20a%20named%20range%20as%2C%20there%20are%20potentially%2010-2%20roles%20and%20I%20don't%20want%20people%20to%20add%20entries%20based%20on%20free%20text%20but%20much%20more%20pick%20from%20a%20list%20of%20allowed%20roles%20for%20each%20line.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113539%22%20slang%3D%22en-US%22%3ERe%3A%20Dropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113539%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F954175%22%20target%3D%22_blank%22%3E%40nailuenlue%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOK...%20Play%20around%20with%20this.%20I%20eliminated%20your%20%22utility%22%20sheet%20as%20redundant.%20The%20%22raw%20data%22%20sheet%20contains%20all%20the%20tables%20you%20need%2C%20unless%20you%20add%20new%20roles%2C%20in%20which%20case%20you'll%20have%20to%20expand%20a%20few%20references%20to%20them.%20But%20this%20shows%20the%20basic%20structure.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20the%20Positions%20sheet%20you%20should%20Hide%20Column%20C%2C%20which%20is%20just%20there%20as%20a%20Helper%20column%2C%20to%20provide%20the%20address%20for%20the%20data%20validation%20for%20the%20entries%20(variable%20entries)%20that%20go%20into%20Column%20B%20based%20on%20what%20Role%20is%20picked%20in%20Column%20D.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20it%20were%20mine%2C%20I'd%20reverse%20the%20sequence%2C%20so%20you%20pick%20Role%20on%20the%20left%2C%20and%20then%20select%20the%20Position%20to%20the%20right....%20just%20makes%20more%20sense%20in%20a%20left%20to%20right%20world.%20But%20the%20same%20data%20validation%20rules%20would%20apply.%26nbsp%3B%3CBR%20%2F%3E%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113428%22%20slang%3D%22en-US%22%3ERe%3A%20Dropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113428%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20made%20a%20sample%20Excel%20file%20to%20show%20the%20usecase%20with%20descriptions.%20Please%20check%20the%20raw_data%20%26amp%3B%20positions%20sheet%20for%20the%20explanations%20and%20the%20util%20sheet%20for%20the%20data%20used%20in%20the%20named%20range.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113399%22%20slang%3D%22en-US%22%3ERe%3A%20Dropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113399%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F954175%22%20target%3D%22_blank%22%3E%40nailuenlue%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20we%20may%20be%20talking%20past%20each%20other.%20Here's%20a%20sample%20I%20created%20just%20to%20illustrate%20dependency%20of%20data%20validation%20tables.%20If%20that's%20not%20what%20you're%20looking%20for%2C%20then%20I%20have%20been%20misunderstanding%20what%20that%20is.%20However%2C%20I%20do%20see%20that%20this%20does%20not%20use%20INDIRECT.%20It%20does%20use%20several%20of%20the%20newly%20available%20dynamic%20array%20functions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20adding%20names%20to%20the%20basic%20table%20here....you'll%20see%20that%20the%20sets%20of%20data%20for%20the%20primary%20and%20secondary%20data%20validation%20entries%20automatically%20accommodate%20the%20new%20names%2C%20first%20and.%2For%20last.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113393%22%20slang%3D%22en-US%22%3ERe%3A%20Dropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113393%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20indirect%20concept%20doesnt%20work%20as%20it%20assumes%20a%20flat%20data%20structure%20as%20a%20source%20for%20the%20dependency.%20So%20you%20would%20have%20the%20data%20sheet%20where%20everyone%20would%20fill%20the%20roles%20and%20positions%20without%20the%20drop%20downs%20(which%20would%20then%20result%20in%20a%20data%20mess%20or%20hell%20lot%20of%20validation%20formulas%20without%20lists).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20really%20need%20to%20populate%20the%20roles%20drop%20down%20in%20the%20second%20sheet%20with%20the%20selected%20entries%20in%20the%20roles%20column%20(which%20is%20a%20named%20range)%20in%20the%20data%20sheet%20and%20populate%20only%20the%20positions%20in%20the%20second%20sheet%2C%20which%20have%20been%20picked%20in%20the%20data%20sheet%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2113377%22%20slang%3D%22en-US%22%3ERe%3A%20Dropdown%20dependency%20(difficult%20with%20INDIRECT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113377%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F954175%22%20target%3D%22_blank%22%3E%40nailuenlue%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20this%20is%20what%20you're%20looking%20for.%20%3CA%20href%3D%22https%3A%2F%2Fexceljet.net%2Fdependent-dropdown-lists%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexceljet.net%2Fdependent-dropdown-lists%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20discussion%20there%20is%20about%20using%20Dynamic%20Array%20along%20with%20INDIRECT%20to%20come%20up%20with%20changing%20subordinate%20levels%20of%20data%20validation%2C%20a%20set%20of%20data%20validation%20values%20that%20vary%20with%20the%20primary%20selection.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20might%20also%20benefit%20from%20this%20YouTube%20video%20on%20Dynamic%20Arrays%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9I9DtFOVPIg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9I9DtFOVPIg%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi  

 

I have a problem, which is bugging me for some hours now. I basically have a data sheet, which has the columns:

  • Role
    • examples: Architect, Engineer etc.
  • Position
    • examples: Solution Architect XYZ, Cloud Engineer ABC

This data sheet will be populated with multiple positions, which are of a particular role type. The entries for Role and Position come from named ranges.

 

Now I have another sheet, where I maintain the candidates, which applied for a position. So, I basically want to add entries to that sheet, which now has the columns Candidate, Role, Position. The role dropdown should only include entries, which exist in the data sheet (so not just the total of the named range for role but the ones  that have been picked in the data sheet) with the corresponding positions (so, again a subset of the named range, which exists in the data sheet).


Do you have an idea on how to solve this?

8 Replies

@nailuenlue 

 

I think this is what you're looking for. https://exceljet.net/dependent-dropdown-lists

 

The discussion there is about using Dynamic Array along with INDIRECT to come up with changing subordinate levels of data validation, a set of data validation values that vary with the primary selection.

 

You might also benefit from this YouTube video on Dynamic Arrays: https://www.youtube.com/watch?v=9I9DtFOVPIg

 

 

 

Learn everything about our brand-new Dynamic Arrays and how you can use them to build advanced spreadsheets. Arrays (CSE) have long been present in Excel, bu...

@mathetes 

 

The indirect concept doesnt work as it assumes a flat data structure as a source for the dependency. So you would have the data sheet where everyone would fill the roles and positions without the drop downs (which would then result in a data mess or hell lot of validation formulas without lists).

 

I really need to populate the roles drop down in the second sheet with the selected entries in the roles column (which is a named range) in the data sheet and populate only the positions in the second sheet, which have been picked in the data sheet

 

 

 

@nailuenlue 

 

I think we may be talking past each other. Here's a sample I created just to illustrate dependency of data validation tables. If that's not what you're looking for, then I have been misunderstanding what that is. However, I do see that this does not use INDIRECT. It does use several of the newly available dynamic array functions.

 

Try adding names to the basic table here....you'll see that the sets of data for the primary and secondary data validation entries automatically accommodate the new names, first and./or last.

 

 

@mathetes 

 

I made a sample Excel file to show the usecase with descriptions. Please check the raw_data & positions sheet for the explanations and the util sheet for the data used in the named range.

Best Response confirmed by nailuenlue (Occasional Contributor)
Solution

@nailuenlue 

 

OK... Play around with this. I eliminated your "utility" sheet as redundant. The "raw data" sheet contains all the tables you need, unless you add new roles, in which case you'll have to expand a few references to them. But this shows the basic structure.

 

On the Positions sheet you should Hide Column C, which is just there as a Helper column, to provide the address for the data validation for the entries (variable entries) that go into Column B based on what Role is picked in Column D.

 

If it were mine, I'd reverse the sequence, so you pick Role on the left, and then select the Position to the right.... just makes more sense in a left to right world. But the same data validation rules would apply. 
"

@mathetes 

 

Thanks a lot for putting the time in to provide help Really appreciate it!

 

My problem is really that the roles in the raw data has to come from a named range as, there are potentially 10-2 roles and I don't want people to add entries based on free text but much more pick from a list of allowed roles for each line.

@mathetes 

I did slight modifications but your proposal was a big help. Thanks a lot!

@nailuenlue 

 

I fully expected you to have to make some modifications. I was only trying (without knowing the full picture) to give an idea of how the task could be accomplished. Glad it helped. And I'm sure you have noticed that INDIRECT did make a showing.......in the final data validation formula.