Google Drive Blog
The latest news and updates from the Google Drive team.
Data Validation gives you more control over your spreadsheets
Tuesday, February 17, 2009
Have you ever wanted to suggest or control what people enter in your spreadsheet? Now you can, using the new
data validation
feature in spreadsheets. Once a range of cells are selected, the feature can be accessed in
Tools > Data Validation
and lets you create rules for numbers, text, and dates. Let's see how it works.
Say you're hosting a party, you've invited your friends, and want them to fill out a spreadsheet to indicate the best way to contact them, how many guests they're planning to bring, and what flavor of ice cream they prefer to eat.
First, select a range of cells and use
Tools > Data Validation
to set up the rules. You can set up a rule to make sure that only valid email addresses are allowed so you know the best way to contact your friends.
In this case, you can prevent users from entering in data (an invalid email) that breaks the rule.
Next, you may want to suggest that your friends don't invite more than two additional guests, each. Another rule will prompt this suggestion for a different range of cells.
Notice that the spreadsheet prevents you from entering a number greater than 2:
Finally, if you're a chocolate lover, you may want to kindly suggest to your friends that their favorite choice of ice cream really is chocolate. Another data validation rule for text should do the trick.
For this rule, your friends will see an ice cream flavor suggestion but they'll still be allowed to enter different flavors.
Of course, there are other uses cases of data validation rules, like making sure your friends are entering their ideal dates for the party within a certain specified time range. Have fun planning your next party (with chocolate ice cream)!
A few notes on this new feature:
If data validation is applied to cells containing data, rules won't be applied until the data is modified.
Only one validation rule can be applied to each cell.
Posted by:
Radhika
Lakshmanan
, Software Engineer
Labels
#SafeOnline
accessibility
add-ons
Android
app scripts
apps
attachments
avery
back to school
blind
braille
charts
chat
Chrome
Chrome extensions
chrome web apps
Cloud Connect
collaboration
comments
community
discussions
docs
docs editors
document list
documents
documents list
drawings
Drive
drivebacktoschool
easybib
education
enterprise
Faces of Docs
folders
forms
gmail
gone google
Google Apps Blog
Google Apps Script
Google Cloud Connect
google docs
Google Docs Viewer
google documents
google drive
Google Drive Blog
Google Pack
Google Sites
Google+
googlenew
Guest Post
hangout on air
help
holiday
images
iOS
Keep
letterfeed
low-vision
mailchimp
mobile
nanowrimo
OCR
office compatibility mode
offline
paperless
pdfs
photo
photos
presentations
product ideas
profiles
quickoffice
Reddit
research
save to drive
screen reader
scripts
security
sharing
sheet
sheets
shortcut
slides
spell check
spreadsheets
stock photos
storage
students
suggested edits
tables
teachers
team
templates
videos
Viewer
work
Archive
2016
Sep
May
Apr
Feb
Jan
2015
Dec
Nov
Oct
Jul
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jun
Apr
Mar
Jan
2013
Dec
Nov
Oct
Sep
Aug
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
2011
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2007
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2006
Dec
Nov
Oct
Feed
Visit our site
Google Drive
Google Docs, Sheets, Slides
Google
on
Follow @googledrive
Give us feedback in our
Product Forum
.