0
votes

Resume: Hello. I made a dependent drop down option in Google Sheet. But I need to set validation data sequentially for all rows in the sheet. I don't want to do it manually.

Deitals: I have a Category and sub-category Drop Down menu

Categories

This items are filled with data from sheet which I made some named ranges and this formulas fill the subcategory dropdown:

=IF(A1<>"";TRUE;FALSE)
=IF($D1;TRANSPOSE(INDIRECT(QUERY(Categories!$H$2:$I$1000; "SELECT I WHERE H = '"&A1&"'")));TRANSPOSE(INDIRECT("all_subcategories")))

The query inside the first INDIRECT will return one of this values: Named Ranges

First verify if Category was chosen and case yes query for named range name for chosen category and use it with INDIRECT function to get list range for dropdown. If category is empty I use another named range with all subcategories.

But How to set this data validation for all rows in this sheet????

To set data validation in this window I need to choose a range to apply data validation and criteria which I chosen interval list. If I set a range like A2:A1000 all lines will have validation data based on same transpose line.

OBS: Custom Formula does not worked for me.

I made an example sheet to share with you

Example Sheet

Data Validation

1
Can you add any details like: code used, error problem encountered? How do I ask a good question?, How to create a Minimal, Complete, and Verifiable example Show the community what you have tried.abielita
Hi @abielita !!! Tks for answer. I didn't have error with this. The problem is I don't want to to put a range to fill dropdown. I would have to put something like E2:AM2 sequentially for each line in this sheet. I want to do something like dragging and drop.Rodrigo Rocha

1 Answers

0
votes

In your validation rules change

MainSheet!B2

to

MainSheet!B:B