Forum Discussion

Asa94's avatar
Asa94
Copper Contributor
Oct 05, 2021
Solved

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

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:     The problem is that I really need a hu...
  • Riny_van_Eekelen's avatar
    Oct 05, 2021
    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.

Resources