SOLVED

Issues on dynamic ranges for drowpdown lists in excel

%3CLINGO-SUB%20id%3D%22lingo-sub-3490207%22%20slang%3D%22en-US%22%3EIssues%20on%20dynamic%20ranges%20for%20drowpdown%20lists%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3490207%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20am%20having%20issues%20creating%20a%20dymic%20range%20for%20my%20drop%20down%20list%20in%20excel%3C%2FP%3E%3CP%3Ebasically%2C%20i%20have%20started%20literally%20reworking%20the%20example%20provided%20on%26nbsp%3B%3CA%20title%3D%22Excel%20help%20page%22%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fcreate-a-drop-down-list-7693307a-59ef-400a-b769-c5402dce407b%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EExcel%20help%20page%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20gives%20the%20following%20error%20message%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22First%20error.JPG%22%20style%3D%22width%3A%20952px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F379113iF9A0B3D24B56275D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22First%20error.JPG%22%20alt%3D%22First%20error.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20is%20already%20weird%2C%20because%20all%20i%20am%20doing%20is%20reqorking%20the%20example%2C%20i%20have%20tabulated%20the%20list%20as%20recommended%2C%20but%20this%20is%20not%20even%20what%20i%20want%20to%20do%2C%20because%20my%20range%20has%20to%20be%20dynamic%2C%20if%20i%20add%20items%20to%20the%20table%2C%20these%20should%20be%20added%20in%20the%20drop%20down%20menu%20as%20choosable%20options.%20so%20actually%20what%20i%20want%20to%20do%20is%20this%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22second%20error.JPG%22%20style%3D%22width%3A%20838px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F379115iFE6E535026C6EEC6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22second%20error.JPG%22%20alt%3D%22second%20error.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eas%20you%20can%20see%20it%20actually%20highlights%20my%20list%2C%20so%20all%20is%20well%2C%20one%20would%20say.%3C%2FP%3E%3CP%3EBut%20then%20i%20hit%20the%20ok%20button%20and%20the%20following%20happens%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22third%20error.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F379116i739DD9F3FECC5913%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22third%20error.JPG%22%20alt%3D%22third%20error.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ethis%20is%20not%20supposed%20to%20happen%2C%20excel%20recognizes%20the%20named%20range%2C%20there%20is%20no%20reason%20why%20i%20should%20get%20this%20error%20message.%20i%20have%20tried%20several%20ways%2C%20technically%2C%20as%20the%20table%20is%20only%20one%20column%2C%20i%20should%20also%20be%20able%20to%20just%20put%20%3DCities%20in%20the%20source%20box%2C%20but%20everytime%20i%20get%20this%20error%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20actually%20think%20this%20is%20a%20flaw%20in%20excel.%20But%20if%20i%20am%20doing%20something%20wrong%20i%20am%20hoping%20that%20someone%20can%20point%20out%20what%20it%20is%20that%20i%20am%20doing%20wrong%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20hope%20the%20community%20is%20able%20to%20help%20me%20out%20here%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%3C%2FP%3E%3CP%3EWunterSlaus%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3490207%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3492411%22%20slang%3D%22en-US%22%3ERe%3A%20Issues%20on%20dynamic%20ranges%20for%20drowpdown%20lists%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3492411%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1419599%22%20target%3D%22_blank%22%3E%40WunterSlaus%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20don't%20need%20sheet%20name%20in%20reference%2C%20just%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20496px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F379285i1FDBDCE4C54DCC6A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20add%20more%20values%20into%20the%20table%20data%20validation%20picks%20the%20up%20if%20the%20table%20and%20the%20cell(s)%20with%20data%20validation%20are%20in%20the%20same%20sheet.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlternatively%20in%20Name%20Manager%20you%20may%20define%20the%20name%20(e.g.%20DVList)%20as%20%3DTable1%5BCity%5D%20and%20use%20%3DDVList%20in%20data%20validation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3495791%22%20slang%3D%22en-US%22%3ERe%3A%20Issues%20on%20dynamic%20ranges%20for%20drowpdown%20lists%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3495791%22%20slang%3D%22en-US%22%3EDear%20Sergei%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20you%20are%20suggesting%20is%20exactly%20what%20i%20want%20to%20do%2C%20but%20then%2C%20when%20i%20do%20it%2C%20it%20ends%20with%20the%20error%20message%20in%20the%20screen%20capture%20in%20my%20previous%20message.%3CBR%20%2F%3Ewhat%20i%20want%20is%20that%20error%20message%20to%20end%2C%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%3CBR%20%2F%3EWunterSlaus%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3495816%22%20slang%3D%22en-US%22%3ERe%3A%20Issues%20on%20dynamic%20ranges%20for%20drowpdown%20lists%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3495816%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1419599%22%20target%3D%22_blank%22%3E%40WunterSlaus%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20hard%20to%20say%20what's%20wrong%20without%20the%20file.%20Please%20check%20attached%20one%20if%20it%20works%20in%20your%20environment.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3515381%22%20slang%3D%22en-US%22%3ERe%3A%20Issues%20on%20dynamic%20ranges%20for%20drowpdown%20lists%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3515381%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eyour%20attached%20file%20was%20very%20helpful%2C%20i%20have%20it%20working%20now%3C%2FP%3E%3CP%3EThank%20you%20very%20much%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3ECorstiaan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3517598%22%20slang%3D%22en-US%22%3ERe%3A%20Issues%20on%20dynamic%20ranges%20for%20drowpdown%20lists%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3517598%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1419599%22%20target%3D%22_blank%22%3E%40WunterSlaus%3C%2FA%3E%26nbsp%3B%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi all

 

i am having issues creating a dymic range for my drop down list in excel

basically, i have started literally reworking the example provided on Excel help page 

 

this gives the following error message

First error.JPG

 

this is already weird, because all i am doing is reqorking the example, i have tabulated the list as recommended, but this is not even what i want to do, because my range has to be dynamic, if i add items to the table, these should be added in the drop down menu as choosable options. so actually what i want to do is this

 

second error.JPG

as you can see it actually highlights my list, so all is well, one would say.

But then i hit the ok button and the following happens

third error.JPG

this is not supposed to happen, excel recognizes the named range, there is no reason why i should get this error message. i have tried several ways, technically, as the table is only one column, i should also be able to just put =Cities in the source box, but everytime i get this error

 

i actually think this is a flaw in excel. But if i am doing something wrong i am hoping that someone can point out what it is that i am doing wrong here.

 

i hope the community is able to help me out here

 

regards

WunterSlaus

5 Replies
best response confirmed by WunterSlaus (New Contributor)
Solution

@WunterSlaus 

You don't need sheet name in reference, just

image.png

If you add more values into the table data validation picks the up if the table and the cell(s) with data validation are in the same sheet.

 

Alternatively in Name Manager you may define the name (e.g. DVList) as =Table1[City] and use =DVList in data validation.

Dear Sergei

What you are suggesting is exactly what i want to do, but then, when i do it, it ends with the error message in the screen capture in my previous message.
what i want is that error message to end,

Regards
WunterSlaus

@WunterSlaus 

It's hard to say what's wrong without the file. Please check attached one if it works in your environment.

@Sergei Baklan 

 

your attached file was very helpful, i have it working now

Thank you very much

 

Regards

Corstiaan