Add data validation
add_data_validationRestrict data entry in Excel ranges by adding validation rules such as dropdown lists, number/date limits, text length checks, or custom formulas.
Instructions
Restrict what can be entered in a range, e.g. a dropdown list.
Rule types: 'list' (options), 'whole', 'decimal', 'date' and 'text_length' (operator plus minimum, and maximum for between/notBetween; dates as 'DATE(2026,1,31)'), and 'custom' (a formula for the range's top-left cell).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to an .xlsx, .xlsm, .xltx or .xltm file. Relative paths are resolved in the server's workbook directory when one is configured; otherwise use an absolute path. | |
| rule | Yes | ||
| range | Yes | A cell or rectangular range in A1 notation, e.g. 'A1:D20'. | |
| sheet | Yes | Worksheet name, e.g. 'Sheet1'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |