Sample Data
This column lists ages entered by users. We want to allow only ages between 18 and 59.
| Cell | Value |
|---|---|
| A1 | Age |
| A2 | 25 |
| A3 | 40 |
| A4 | 15 |
| A5 | 60 |
| A6 | 10 |
This column lists ages entered by users. We want to allow only ages between 18 and 59.
| Cell | Value |
|---|---|
| A1 | Age |
| A2 | 25 |
| A3 | 40 |
| A4 | 15 |
| A5 | 60 |
| A6 | 10 |
AND(A2>=18, A2<=59)A +-----+ 1 | Age | +-----+ 2 | 25 | <-- referenced by formula +-----+ 3 | 40 | +-----+ 4 | 15 | +-----+ 5 | 60 | +-----+ 6 | 10 | +-----+
A B +-------+---------+ 1 | Age | Valid? | +-------+---------+ 2 | 25 | TRUE | +-------+---------+ 3 | 40 | TRUE | +-------+---------+ 4 | 15 | FALSE | +-------+---------+ 5 | 60 | FALSE | +-------+---------+ 6 | 10 | FALSE | +-------+---------+