Excel data validation formulas
The formula to paste into Data Validation for unique, list, number, date and email rules.
What is Excel data validation formulas
Data validation is a gate on what can be typed into a cell. It is driven by a formula or a source range, and getting that formula wrong is why validation 'does not work' — usually because the reference is relative where it needed to be absolute. Each rule here comes with the exact steps and the reason for its reference style.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
What each rule gates
Every rule is a formula or a source range that must evaluate TRUE for the entry to be accepted. The formulas here use absolute references ($A:$A) on purpose: a relative reference shifts per cell and silently validates the wrong row.
Why validation seems not to work
It only fires on new typing or pasting into the cells. Data already in the sheet is untouched, and a paste of a whole block can bypass it in some versions. Validation is a gate at the door, not a cleanup.
When not to use it
When you need the sheet to survive being edited by someone else's macro or an import. Those write straight to the cells. If the data arrives by import, validate after the import with a formula column instead. Write the error message as an instruction, not a complaint. "Enter a date after today" gets the entry fixed; "Invalid value" gets the cell cleared and retyped the same way.
How to use
- 1.Pick the rule you need.
- 2.Select the target cells, then Data → Data Validation.
- 3.Paste the formula as a Custom rule and set the error message.
How this compares
There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Formulas become their last computed value; merged cells and styles are dropped | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.
Frequently asked questions
Why is my validation not stopping anything?
Three usual causes: the rule was applied to the wrong range, the formula used a relative reference that shifts per cell, or the data was already in the cells (validation only gates new entries).
Can validation remove existing bad rows?
No, and it never will. It evaluates as you type. Existing problems need Find & Select → Go To Special, or the cleanup tools in this section.
What this kind of conversion cannot keep
Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.
More in Spreadsheets & Docs
On this page
- What is Excel data validation formulas
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →