# Use data from Google Sheets in dependent dropdown

**URL:** <https://community.tulip.co/t/use-data-from-google-sheets-in-dependent-dropdown/1999>\
**Category:** Support, Troubleshooting, & Help\
**Created:** [March 4, 2021, 3:23pm UTC](https://community.tulip.co/t/use-data-from-google-sheets-in-dependent-dropdown/1999 "2021-03-04T15:23:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andres](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andres](https://community.tulip.co/u/Andres)\
**Post date:** [March 4, 2021, 3:23pm UTC](https://community.tulip.co/t/use-data-from-google-sheets-in-dependent-dropdown/1999/1 "2021-03-04T15:23:34Z")

</div>

Hi. I am looking to build dependent dropdowns that are getting data from Google Sheets using the API.

What I want to build is described here:

I have a Google Sheets table that looks like this:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/d/d13d7df3a2d89c0f85ddef59355b6aef3646c35d.png)

I want to make two dependent dropdowns:

1. One that has only unique strings from the column “Defect type.”
2. Dependent on the first dropdown selection, it displays only strings from the “Defect name” column that match with the selected Defect type from the previous dropdown.

The illustration of my dropdown use idea:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/e/e45c109bcd5391a1cf0a5edc1794c6b8479942bf.png)

The output settings of the Google Sheets Connector are following:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/1/1dbfe9762ded06fff81c3b2e3f3898868ecb49f7.png)

The output (some of them) of the Google Sheets Connector:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/6/659365bd41f5f78c24d34f6bc14d182d323fc427.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/3/32e3aee87f9dd2adda826d424d8ca76d0c41fe09.png)

Questions:

1. How to filter out the first row (in this case, the “Defect type”)?

2. How to have only unique values in this dropdown?  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/d/d39af552da88324dc2052ec0895e4c0c205126af.jpeg)

3. How to display only the Defect names that match with a selection from the previous dropdown list?

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [March 4, 2021, 8:12pm UTC](https://community.tulip.co/t/use-data-from-google-sheets-in-dependent-dropdown/1999/2 "2021-03-04T20:12:47Z")

</div>

hello @Andres, great questions!! just to confirm, is there a reason why the defect data needs to live in Google Sheets?? if you could upload it via CSV to a Tulip Table it would make interacting with it a lot simpler, just a suggestion!! here’s how to import if you’re interested in it: [How to Import a Spreadsheet into a Table | Tulip Help Center - Support for Building Manufacturing Apps](https://support.tulip.co/en/articles/4332503-how-to-import-a-spreadsheet-into-a-table)

but to answer your questions:

1. if the list will not be changing in your Google Sheet, you could point to the various defect types and create an Array out of those:  

2. will be solved if the above solution works

3. have you looked into creating a filter on the Google Sheet and adding that as a parameter when running the connector function?? I haven’t tried implementing it, but something like this could be a good solution: [Filters &nbsp;|&nbsp; Sheets API &nbsp;|&nbsp; Google Developers](https://developers.google.com/sheets/api/guides/filters). let us know if you’re able to implement it!!
