Writers' Community!
Home Page Two Columnists Q&A Submit an Article FAQs Contact Author Login
Article Submission
We Need YOUR Articles!
We'll Promote Them for FREE!

Author Login

New Authors
Register Here


Now Serving 7,783 Authors
70,502 Quality Articles
& 3,814 Current Users Online!
Featured Authors
Mogama (16,433)
Bruce Horst (138)
Joel Hendon (17,877)
Michael Ramzy (633)
E. Raymond Rock (3,064)
Ira Coffin (7,406)
Connor Davidson (5,137)
Ben Morrish (8,401)
Steve Kovacs (4,388)
Sandra E. Graham (8,072)
Fran Larson (2,158)
Shari Vaudo (418)
David Tanguay (9,593)
Missing Link (708)

View All Featured Authors
Most Recent
Agile Programming Does Not Excuse a Lack of Design

Was Ares I-X designed by NASAs own CAD-system?

How To Decide A Niche For Your Membership Software?

How to Remove the Vocals from a Song

Jazz Up and Organize Your Inbox with Color Categories

Preventing Malware While Browsing The Internet

Should A Cad Come With The Operation System?

How To Setup An Email Out of Office Auto Reply In Mircosoft Outlook

How can I open a 2007 Microsoft Office file in an earlier version of Office?

What are the Key Requirements for Privacy Control Software?

Home » Categories » Computers & Networking » Software » How To Control What Data Can Be Entered Into A Microsoft Excel Cell? » Reprint Rights » Printer Friendly

How To Control What Data Can Be Entered Into A Microsoft Excel Cell?

Rated 3 out of 5
No Reader Ratings Available ?
Rate It  /  View Comments  /  View All Articles submitted by Chris Le Roy
Submitted Sunday, July 23, 2006
Chris Le Roy (826)
One-on-One Personal Computer Training
Log in to become a member of Chris Le Roy's Fan Club!


Microsoft Excel by default allows you to enter any type of data into a cell however sometimes when you are developing a spreadsheet for use by your staff or external people you will want to control what data can be entered into a specific cell.

Why??

Well in certain situations like in Business Models or spreadsheets that calculate, having invalid data in one cell can cause your whole spreadsheet to fail so in those situations it is important to apply data validation to your cells to ensure that the user cannot put a text value into a cell requiring a number. Another example would be preventing a user from putting a date value into a number field.

To achieve this in Microsoft Excel we have a tool called Data Validation that allows you to set specific data types to be accepted on a cell. In fact it goes further than that and allows you to control not just the data type but also other aspects like whether a number falls within a range of values, whether you have a certain volume of text in your cells or you can provide a list of values a person can select from.

So how do we do this?

The first step in the process of applying validation to your cells is to select the cells you what to create the validation for. It should be noted that you can select multiple cells and apply the validation to multiple cells at the one time.

Once you have selected the cells you want to apply validation to, select the Data menu and from the drop down menu choose the Validation command from your drop down menu. This command will open the Data Validation dialog box. From here you can now choose which type of data your cell should accept. As an example lets choose the Whole numbers option from the Allow drop down box. In this sample we want the user to be able to type in any whole number greater than zero, therefore we have to select the Greater Than function from the Data drop down menu and then type in 0 in the Minimum text box. Finish off by pressing the OK button.

Now enter in a value of 22.3 into the cell. What you will notice is that the cell as soon as you press enter will come up with an error that says “The value you have entered is not valid. A user has restricted values that can be entered into this cell". You will not be able to move off this cell until you have entered the correct value.

You can restrict your cells to holding just dates or times, by simply choosing the Date or Time option from the Data Validation dialog box. One thing to know though is that you will have to put in a date range. The easiest way to do this is to set the Data drop down box to “Greater Than" and in the Start Date drop down box set the value to 1/1/1900. This means that all dates you enter will be valid after the 1 January 1900 and remember to finish off by pressing the OK button. Now try and enter an invalid date. You will notice as soon as you try to move off the cell it will generate an error.

Data validation is an important area to implement when you are developing an excel spreadsheet for use by others. The data validation rules play two important roles –

1. Prevents the user from accidentally putting the wrong value into your cell.
2. Ensures that the entered data is within the range you anticipated

The other area you should give consideration to using data validation is when you are developing Excel Spreadsheets that will be used as Microsoft Excel Templates. Using Data validation in your spreadsheets will save you a lot of time and hassle when providing your spreadsheets for use by third parties.

Chris Le Roy has developed a number of Microsoft Office Tutorials including a Microsoft Access Training Advanced Program, Microsoft Excel Tutorial and a Microsoft Word Tutorial.



tweet this!

The author of this article has chosen to make this article available with free reprint rights.
Click here to copy this article.

Reprint Rights

Log in to become a member of Chris Le Roy's Fan Club!

No comments yet.


Was this article helpful to you? Leave a Public Comment or Question:

This Article has been viewed 541 times.
Article added to SearchWarp.com on 7/23/2006 4:42:29 AM.
View other articles written by Chris Le Roy (826)


If you found this article interesting, you may want to check out:

Disclaimer:  All information on this site is provided for informational purposes only! By no means is any information presented herein intended to substitute for the advice provided to you by any health care or other professional or organization.


Today's Most Popular
Improve PC Performance - 6 Tips You Must Know.

Introduction to DQL-Documentum Query Language

Linux Command Tutorials - Opening a Linux Terminal / Console to Run Linux Commands - Tutorial Help

Linux Commands Tutorials - Using the ls Command with Examples of Options - A Hands-On Tutorial Help

How To Export A Microsoft Access Report as a PDF

What Shows Up On a Criminal Record Background Check?

FTPS (FTP over SSL) vs. SFTP (SSH File Transfer Protocol): What To Choose

Speed up Internet Explorer 6

Multiversion Concurrency Control (MVCC)- How PostgreSQL attain data consistency

Windows Vista and Internet Explorer 7 Delete View Objects Bug

Viewed from Cache. Load Time: 0.015.

Home  |  Page Two  |  FAQ's  |  Contact  |  Terms of Service  |  Article Submission Guidelines  |  Questions & Answers  |  Privacy  |  Mission / About
Copyright © 1999-2009 SearchWarp.com, All Rights Reserved - SearchWarp.com is an IcoLogic, Inc. Company