SOLVED

Data Validation: How to get around character limitation in the "Source" field

%3CLINGO-SUB%20id%3D%22lingo-sub-2812565%22%20slang%3D%22es-ES%22%3EData%20Validation%3A%20How%20to%20get%20around%20character%20limitation%20in%20the%20%22Source%22%20field%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2812565%22%20slang%3D%22es-ES%22%3E%3CP%3EDear%20colleagues%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20turns%20out%20that%20I%20am%20to%20build%20a%20report%20based%20on%20drop-down%20options.%20For%20that%20purpose%20I%20am%20nesting%20IF%20formulas%20as%20shown%20below%3A%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%22Asa94_0-1633433204484.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F315251iC914CB52F243BD16%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Asa94_0-1633433204484.png%22%20alt%3D%22Asa94_0-1633433204484.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%20that%20I%20really%20need%20a%20huge%20amount%20of%20operators%20for%20it%20to%20work%20as%20intended.%20Suffice%20it%20to%20say%20that%20I%20have%2050%20different%20values%20for%20%22E2%22%20and%20depending%20on%20this%20%22E2%22%20I%20might%20have%20at%20least%205-10%20dependent%20values%20for%20the%20drop-down%20menu%20to%20display.%20I%20tried%20to%20write%20the%20nested%20formula%20but%20I%20get%20to%20a%20point%20where%20I%20can't%20enter%20any%20further%20character.%20I%20think%20this%20stems%20from%20Excel's%20character%20limitation%20per%20cell.%20Does%20anyone%20know%20how%20to%20get%20around%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2812565%22%20slang%3D%22es-ES%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2812637%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Validation%3A%20How%20to%20get%20around%20character%20limitation%20in%20the%20%22Source%22%20field%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2812637%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F937707%22%20target%3D%22_blank%22%3E%40Asa94%3C%2FA%3E%26nbsp%3BSince%20you%20tagged%20your%20post%20with%20Office365%20I%20assume%20you%20can%20use%20dynamic%20array%20functions%20like%20UNIQUE%20and%20FILTER.%20Rather%20than%20%22programming%22%20all%20options%20in%20the%20List%20box%2C%20create%20a%20table%20with%20all%20possible%20selections.%20Then%20for%20each%20next%20level%20drop-down%20you%20can%20filter%20unique%20options%20from%20that%20table%20and%20point%20the%20data%20validation%20list%20to%20a%20dynamically%20filtered%20array.%20A%20simplified%20example%20is%20included%20in%20the%20attached%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2813102%22%20slang%3D%22es-ES%22%3ERe%3A%20Data%20Validation%3A%20How%20to%20get%20around%20character%20limitation%20in%20the%20%22Source%22%20field%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2813102%22%20slang%3D%22es-ES%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3BYes%2C%20I%20am%20using%20O365%2C%20however%20I'm%20quite%20a%20newbie%20in%20Excel.%3C%2FP%3E%3CP%3EI%20tried%20to%20use%20your%20array%20formulas%20but%20got%20an%20error%20upon%20typing%20them%2C%20for%20instance%2C%20I%20cannot%20use%20the%20tblSelection%5B%5D%20part%20since%20it%20triggers%20a%20reading%20error.%20I%20tried%20to%20do%20it%20stating%20the%20exact%20cells%20instead%20but%20it%20didn't%20work%20either.%20PFA%20my%20attempt.%20Hope%20you%20can%20shed%20some%20light%20on%20this%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2813340%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Validation%3A%20How%20to%20get%20around%20character%20limitation%20in%20the%20%22Source%22%20field%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2813340%22%20slang%3D%22en-US%22%3E%3CDIV%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F937707%22%20target%3D%22_blank%22%3E%40Asa94%3C%2FA%3E%26nbsp%3BDidn't%20want%20to%20assume%20you%20were%20a%20beginner.%20But%20now%20that%20you%20mention%20it%2C%20I%20would%20recommend%20you%20to%20start%20learning%20about%20structured%20tables.%20The%20one%20I%20used%20in%20the%20example%20was%20called%20%22tblSelections%22.%20In%20the%20attached%20file%20I%20just%20called%20it%20%22Table1%22.%20What%20seems%20to%20be%20complicated%20referencing%20with%26nbsp%3B%40%20and%20%5B%20%5D%20%26nbsp%3Bgoes%20all%20automatic%20when%20you%20click%20on%20a%20cell%20or%20select%20an%20entire%20column%20in%20a%20such%20a%20table.%20Just%20try%2C%20see%20what%20happens%20and%20start%20over%20when%20it%20goes%20wrong.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3ELearning%20the%20dynamic%20array%20functions%20is%20also%20a%20good%20thing.%20Once%20you%20get%20the%20hang%20of%20them%20they%20are%20soooo%20much%20easier%20to%20work%20with%20than%20%22old%20school%22%20functions.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EIn%20summary.%20First%20create%20table%20(the%20blue%20one%20in%20the%20attached%20workbook%2C%20called%20%22Table1%22)%20with%20all%20the%20possible%20selections.%20Then%20designate%20the%20cells%20where%20you%20want%20the%20dropdown%20to%20be%20(I2%3AK2%20in%20the%20attached%20workbook).%20Now%20you%20can%20create%20the%20dynamic%20arrays%20using%20UNIQUE%20and%20FILTER%20as%20demonstrated%20in%20columns%20E%2C%20F%20and%20G%2C%20linking%20to%20the%20cells%20I2%2C%20J2%20or%20K2.%20Finally%2C%20set%20up%20data%20validation%20in%20these%20cells%20and%20enter%20the%20reference%20to%20the%20first%20cell%20in%20the%20relevant%20array%20followed%20by%20a%20%23.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EPerhaps%20intimidating%20in%20the%20beginning%2C%20but%20you'll%20find%20many%20resources%20on%20line%20that%20can%20help%20you%20much%20better%20that%20I%20can.%20Google%20does%20wonders.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2813604%22%20slang%3D%22es-ES%22%3ERe%3A%20Data%20Validation%3A%20How%20to%20get%20around%20character%20limitation%20in%20the%20%22Source%22%20field%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2813604%22%20slang%3D%22es-ES%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%20thanks%20a%20lot%20for%20your%20outstanding%20patience%20and%20support.%20Will%20definitely%20learn%20more%20about%20dynamic%20arrays.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20the%20best%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Dear colleagues,

 

It turns out that I am to build a report based on drop-down options. For that purpose I am nesting IF formulas as shown below:

 

Asa94_0-1633433204484.png

 

The problem is that I really need a huge amount of operators for it to work as intended. Suffice it to say that I have 50 different values for "E2" and depending on this "E2" I might have at least 5-10 dependent values for the drop-down menu to display. I tried to write the nested formula but I get to a point where I can't enter any further character. I think this stems from Excel's character limitation per cell. Does anyone know how to get around it?

 

Thanks a lot!

10 Replies

@Asa94 Since you tagged your post with Office365 I assume you can use dynamic array functions like UNIQUE and FILTER. Rather than "programming" all options in the List box, create a table with all possible selections. Then for each next level drop-down you can filter unique options from that table and point the data validation list to a dynamically filtered array. A simplified example is included in the attached file.

@Riny_van_Eekelen Yes, I am using O365, however I'm quite a newbie in Excel.

I tried to use your array formulas but got an error upon typing them, for instance, I cannot use the tblSelection[] part since it triggers a reading error. I tried to do it stating the exact cells instead but it didn't work either. PFA my attempt. Hope you can shed some light on this

 

Thank you!

best response confirmed by Asa94 (Occasional Contributor)
Solution
@Asa94 Didn't want to assume you were a beginner. But now that you mention it, I would recommend you to start learning about structured tables. The one I used in the example was called "tblSelections". In the attached file I just called it "Table1". What seems to be complicated referencing with @ and [ ]  goes all automatic when you click on a cell or select an entire column in a such a table. Just try, see what happens and start over when it goes wrong.
 
Learning the dynamic array functions is also a good thing. Once you get the hang of them they are soooo much easier to work with than "old school" functions.
 
In summary. First create table (the blue one in the attached workbook, called "Table1") with all the possible selections. Then designate the cells where you want the dropdown to be (I2:K2 in the attached workbook). Now you can create the dynamic arrays using UNIQUE and FILTER as demonstrated in columns E, F and G, linking to the cells I2, J2 or K2. Finally, set up data validation in these cells and enter the reference to the first cell in the relevant array followed by a #.
 
Perhaps intimidating in the beginning, but you'll find many resources on line that can help you much better that I can. Google does wonders.

@Riny_van_Eekelen thanks a lot for your outstanding patience and support. Will definitely learn more about dynamic arrays. 

 

All the best,

@Riny_van_Eekelen 

 

In the end, I managed to implement it. However, whenever I try to extend the drop-down list to other rows, the options are still anchored to the first row option, in my case =UNIQUE(FILTER(OrgChart[Sub-Area],OrgChart[Area]=Report!D2)). This shouldn't happen:

 

Asa94_0-1633689017727.png

 

 

Do you happen to know how can I do to make it work? My need is basically to make each independent - so its drop-down list is updated nas per each "Area" value, not based upon the first designated output cell. The first thing that came to mind is to generate a dynamic array for each row, but it would be to hard and time-consuming.

 

Thanks a lot for your support!.

@Asa94 Can you upload a file? Difficult to help on the basis of a screenshot and a formula without seeing it all at work.

@Asa94 Okay! You basically need to create a dynamic references for every row. The video in the link below contains the explanation.

https://www.youtube.com/watch?v=R2PjPhXGjJU 

Thanks! I had a look at the video and that's what I aimed to do at first. However, as you'll imagine, having to set data validation for each cell and each row, not to mention creating the array for each cell, it far too much time-consuming and it entails that the person whoch is actually populating the report sheet with data needs to know how do arrays work and do this continually. Is there any way to automate these data validation and array creation tasks? Thanks a lot!