Categories

XLSX Data Validation Dropdown

Batch-create dropdowns, dependent cascading dropdowns, and input prompts in Excel workbooks using data validation rules

Build Excel dropdown experiences without manual spreadsheet setup.

  • Supports batch list dropdowns for one or many target ranges
  • Creates cascading parent/child dropdowns with hidden helper sheets and named ranges
  • Adds input prompts and validation error messages
  • Preserves the original workbook while writing validation metadata

Example Results

1 examples

Add Batch and Cascading Dropdowns

Create status dropdowns plus category/item cascading dropdowns with input prompts in a data-entry workbook

xlsx-data-validation-dropdown-example1.xlsx View File
View input parameters
{ "workbookFile": "/public/samples/xlsx/data-entry-template.xlsx", "rulesJson": "[\n {\n \"type\": \"list\",\n \"sheetName\": \"Input\",\n \"target\": \"B2:B50\",\n \"values\": [\n \"Open\",\n \"Pending\",\n \"Closed\"\n ],\n \"promptTitle\": \"Status\",\n \"prompt\": \"Choose a workflow status\"\n },\n {\n \"type\": \"cascade\",\n \"sheetName\": \"Input\",\n \"parentTarget\": \"C2:C50\",\n \"childTarget\": \"D2:D50\",\n \"mapping\": {\n \"Hardware\": [\n \"Laptop\",\n \"Monitor\",\n \"Keyboard\"\n ],\n \"Software\": [\n \"CRM\",\n \"ERP\",\n \"Analytics\"\n ]\n },\n \"parentPromptTitle\": \"Category\",\n \"parentPrompt\": \"Choose a category first\",\n \"childPromptTitle\": \"Item\",\n \"childPrompt\": \"Then choose an item\"\n }\n]" }

Click to upload file or drag and drop file here

Maximum file size: 200MB Supported formats: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

Key Facts

Category
Format Conversion
Input Types
file, textarea
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

The XLSX Data Validation Dropdown tool allows you to programmatically inject dropdown menus, cascading dependencies, and user input prompts into your Excel workbooks. By defining validation rules in JSON, you can standardize data entry across large ranges without manually configuring each cell in Excel.

When to Use

  • When you need to enforce consistent data entry across hundreds of rows in a spreadsheet.
  • When building complex forms that require cascading dropdowns where the second selection depends on the first.
  • When you want to provide helpful input prompts and error messages to guide users during data collection.

How It Works

  • Upload your existing Excel workbook file.
  • Define your validation requirements in the Rules JSON field, specifying the sheet name, target cell ranges, and list values.
  • For cascading menus, map parent categories to their respective child items within the JSON configuration.
  • Process the file to generate a new version of your workbook with all data validation rules applied.

Use Cases

Standardizing project status tracking by forcing users to select from a predefined list of options.
Creating dynamic inventory forms where selecting a 'Category' automatically updates the 'Product' dropdown.
Reducing data entry errors in large-scale surveys by providing clear input prompts and validation constraints.

Examples

1. Standardized Status Tracking

Project Manager
Background
A project tracking sheet requires team members to update task statuses, but manual typing leads to inconsistent data.
Problem
Need to restrict input to 'Open', 'Pending', or 'Closed' and provide a helpful prompt for users.
How to Use
Upload the tracker file and define a list-type rule for the status column.
Example Config
[{"type": "list", "sheetName": "Tasks", "target": "B2:B500", "values": ["Open", "Pending", "Closed"], "promptTitle": "Status", "prompt": "Select the current task status"}]
Outcome
All cells in the status column now feature a dropdown menu and a helpful prompt, ensuring clean, consistent data.

2. Cascading Inventory Selection

IT Administrator
Background
An equipment request form requires users to select a category (Hardware/Software) followed by a specific item.
Problem
Users often select items that do not belong to the chosen category.
How to Use
Use the cascade rule type to map Hardware and Software categories to their specific sub-items.
Example Config
{"type": "cascade", "sheetName": "Request", "parentTarget": "C2:C100", "childTarget": "D2:D100", "mapping": {"Hardware": ["Laptop", "Monitor"], "Software": ["CRM", "ERP"]}}
Outcome
The second dropdown automatically updates its options based on the selection made in the first dropdown.

Try with Samples

json, xml, xlsx

Related Hubs

FAQ

Can I apply dropdowns to multiple columns at once?

Yes, you can specify a range (e.g., 'B2:B100') in the target field to apply the same validation rule to an entire column.

Does this tool overwrite my existing data?

No, the tool preserves your existing data and formatting, only adding the specified data validation rules to the selected ranges.

How do cascading dropdowns work?

The tool automatically creates hidden helper sheets and named ranges to manage the relationship between parent and child dropdowns.

Can I add custom error messages?

Yes, you can define prompt titles and messages within the JSON configuration to guide users or warn them of invalid entries.

What file formats are supported?

The tool supports standard Excel formats including .xlsx and .xls files.

API Documentation

Request Endpoint

POST /en/api/tools/xlsx-data-validation-dropdown

Request Parameters

Parameter Name Type Required Description
workbookFile file (Upload required) Yes -
rulesJson textarea Yes -

File type parameters need to be uploaded first via POST /upload/xlsx-data-validation-dropdown to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-xlsx-data-validation-dropdown": {
      "name": "xlsx-data-validation-dropdown",
      "description": "Batch-create dropdowns, dependent cascading dropdowns, and input prompts in Excel workbooks using data validation rules",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=xlsx-data-validation-dropdown",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]