GithubHelp home page GithubHelp logo

doc22940 / smart-data-validation-in-goolge-sheets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from max-makhrov/smart-data-validation-in-goolge-sheets

1.0 1.0 0.0 94 KB

Create dependent drop-down lists in your sheets.

License: MIT License

JavaScript 100.00%

smart-data-validation-in-goolge-sheets's Introduction

Smart-Data-Valigation-in-Goolge-Sheets

Create dependent drop-down (DDL) lists in your sheets.

Note. I do not support this version of DDLs. Plese see this article to see recommended method.

Features

  1. Set 2 and more level dependent drop-down lists.
  2. Set 1 and more DDLs on a single sheet.
  3. Set 1 and more DDLs from single data sheet.
  4. Set DDLs from another files as a source data.
  5. Set DDLs in a custom order of columns.
  6. Auto-complete values when the only value is left.
  7. Auto-delete validation when user deletes values in previous level

Tip. When you set new rule, use auto column numbers detection. It works when column names are the same in source and work sheet.

Tip. Validation works when user copies data down (uses [Ctrl + V] or [Ctrl + D] keys).

Setup

  1. Open your Sheets
  2. Go to menu Tools > Script Editor
  3. Paste the code from here: https://github.com/Max-Makhrov/Smart-Data-Valigation-in-Goolge-Sheets/blob/master/Master.gs.
  4. Reload the Google Sheets file
  5. The new menu will appear at the right.

enter image description here

  1. Go to Smart Data Validation > Set/Update

enter image description here

  1. To run the code first time, pass the verification process ↑
  2. The sample sheets will appear. See the work in the sheet "Work Sample". See setting in the sheet "Dv_Ini"

enter image description here

  1. Have fun!

Tip. Name columns the same in the datasheet and in the worksheet. The script will find the number of columns for data validation.

enter image description here

Tip. The sheet with settings is called “Dv_Ini”, it contains some hidden columns. Usually, a user does not need to make these settings.

Advanced settings

enter image description here

  1. Source file Id. If the file is the same, leave this column blank. If you need to make the external file as a source, please make sure to fill this column.
  2. Header Row and Columns. If column names in the datasheet and in the worksheet are the same, leave these columns blank. If you need to set different column names or to use different headers, please fill. Header row = a number of a row with column names in the worksheet. Columns is a comma-separated list of columns for data validation.

Tip. How to get file id. Copy it from a file name, see a picture:

enter image description here

Limitations

  1. Up to 500 values in a single DDL
  2. Up to 50,000 calls / day. Limits are related to Google quotas: https://developers.google.com/apps-script/guides/services/quotas

Notes:


Notes:

smart-data-validation-in-goolge-sheets's People

Contributors

max-makhrov avatar

Stargazers

Acampbell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.