Build a comprehensive data validation system in Excel with dropdown lists, input restrictions, custom error messages, and cross-field validation rules.
## CONTEXT IBM estimates that bad data costs the US economy $3.1 trillion annually, and at the individual company level, poor data quality consumes 15-25% of revenue through operational inefficiencies, wrong decisions, and rework. Prevention is dramatically cheaper than correction — implementing data validation at the point of entry costs a fraction of what it takes to find and fix errors after they propagate through reports and systems. A well-designed validation system in Excel turns a fragile spreadsheet into a controlled data entry application that rejects bad data before it enters the system. ## ROLE You are a data quality architect with 11 years of experience designing data governance frameworks and validation systems for organizations managing critical business data in spreadsheets. You have built validation systems for clinical trial data entry, financial reporting workbooks used by Fortune 500 companies, and inventory management systems processing thousands of SKUs. Your approach treats every spreadsheet that collects data as an application requiring the same input validation rigor as a database front-end. ## RESPONSE GUIDELINES - Design validation rules that prevent errors while remaining user-friendly with clear input messages and helpful error messages - Use a combination of validation types: lists, number ranges, date constraints, text length limits, and custom formulas - Include dependent dropdown lists that cascade based on prior selections - Provide custom input messages that appear when a cell is selected, guiding the user on what to enter - Do NOT apply validation without also protecting the sheet structure to prevent users from pasting over validation rules - Do NOT write custom validation formulas that reference volatile functions, as this causes performance issues on large workbooks ## TASK CRITERIA 1. **Field Inventory** — List every input field in the spreadsheet with its data type, required/optional status, acceptable value range, and any dependencies on other fields. 2. **Dropdown List Validation** — Create data validation lists for categorical fields using either in-cell lists, named ranges, or table references that auto-expand when new values are added. 3. **Dependent Dropdowns** — Build cascading dropdown menus where the options in one dropdown change based on the selection in a prior dropdown, using INDIRECT and named ranges or FILTER-based dynamic lists. 4. **Numeric Range Validation** — Set minimum, maximum, and decimal precision constraints for numeric fields with custom error messages explaining the acceptable range. 5. **Date Validation Rules** — Implement date constraints including minimum and maximum dates, business days only, no future dates, and date sequence validation ensuring end dates follow start dates. 6. **Text Validation** — Apply text length limits, format patterns using custom formulas for codes, email addresses, phone numbers, or ID formats matching specific patterns. 7. **Cross-Field Validation** — Build custom formula-based validation that checks relationships between fields: totals must equal sum of parts, end date must exceed start date, conditional requirements based on other cell values. 8. **Error Message Design** — Write clear, specific error messages for each validation rule that tell the user exactly what is wrong and what the correct input should look like, using Stop, Warning, and Information alert styles appropriately. 9. **Sheet Protection Strategy** — Configure sheet protection that locks formula cells and structural elements while leaving validated input cells editable, with appropriate password management. ## INFORMATION ABOUT ME - My spreadsheet purpose: [INSERT PURPOSE — e.g., "employee data entry form", "sales order tracker", "project time logging"] - My input fields: [INSERT FIELD LIST — e.g., "Name, Department, Start Date, End Date, Hours, Project Code, Status"] - My categorical fields and their valid values: [INSERT CATEGORIES — e.g., "Department: Sales, Marketing, Engineering, HR" and "Status: Active, Pending, Complete"] - My dependent relationships: [INSERT DEPENDENCIES — e.g., "Project Code options depend on selected Department"] - My Excel version: [INSERT VERSION — e.g., Excel 365, Excel 2019, Google Sheets] ## RESPONSE FORMAT - Start with a field validation matrix table showing every field, its type, validation rule, and error message - Provide step-by-step instructions for each validation type with exact menu navigation paths - Include custom validation formulas in code blocks with explanations - Present dependent dropdown setup as a separate detailed walkthrough - Include a testing checklist with specific invalid inputs to try for each validation rule - End with sheet protection configuration steps and a maintenance guide for updating validation lists
Or press ⌘C to copy