navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

Excel 2010: Data Validation in Depth

Excel 2010: Data Validation in Depth

with Dennis Taylor

 


In Excel 2010: Data Validation in Depth, author Dennis Taylor shows how to use the data validation tools in Excel to control how users can input data into workbooks and ensure data is entered consistently and accurately. The course covers creating dropdown lists, preventing duplicate entries, and controlling the format of numeric data, dates and times, and text entered into worksheets. Exercise files are included with the course.
Topics include:
  • Testing for whole numbers and decimals
  • Using the input message box
  • Sequencing and placing lists
  • Creating multi-tiered lists
  • Setting date and time limitations
  • Limiting text length
  • Locating data validation rules

show more

author
Dennis Taylor
subject
Business, Data Analysis
software
Excel 2010, Office 2010
level
Intermediate
duration
59m 45s
released
Feb 28, 2011

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:04Hi, I am Dennis Taylor, and welcome to Excel 2010: Data Validation in Depth.
00:10If you need your data to be accurate and you want to enter it quickly, then this
00:14is the right course for you.
00:16I'll be showing you how to limit the types of numbers you can enter, and how to
00:20set up error and warning messages.
00:22We will look at dropdown lists as a way to ensure valid data entry and save a lot
00:26of typing effort, and we will examine methods for controlling the entry of date/
00:31time information, as well as limiting the length of text entries.
00:35These are quick and easy ways to greatly increase data accuracy.
00:39Let's get to it with Excel 2010 Data Validation in Depth.
Collapse this transcript
Using the exercise files
00:00If you have access to the course files, you may want to store them in a
00:03convenient location--perhaps the Desktop--and open them as I am right now, and
00:09choosing, for example, chapter 3.
00:12All of the worksheets associated with chapter 3 are stored in this
00:15particular file right here.
00:16If you do not have these files available, feel free to use your own data as you
00:21work through the course.
Collapse this transcript
1. Controlling the Limits of Numeric Data
Testing for whole numbers and decimals
00:00Unlike Excel's many database management tools which are designed to handle
00:04information that's already existing, data validation controls data at the point of entry.
00:11In column B, we want to put in some whole numbers; in column C, perhaps some dollar amounts.
00:16In its basic form, data validation will allow us to control a range of cells and
00:22what goes into them.
00:23And certainly, in some situations, you will specifically highlight cells
00:27because the data is not going to go beyond that range.
00:30In this example, let's say we don't know how many entries are likely to be here eventually.
00:34Let's just select column B. And the feature we are looking for is on the Data
00:39tab in the Ribbon, Data Validation.
00:43Just click the icon.
00:44Of course, you might read the tip as we see it here.
00:46We are going to control data before it ever gets into this particular worksheet.
00:52And many times when you are you dealing with just pure values, you might give
00:55some thought as to whether you want whole numbers or decimals.
01:00It doesn't really make any difference.
01:01Let's say in the example here we are talking about maybe items that are being
01:05sold, and based on the items in question, they must be whole numbers, so we will choose that.
01:11If this were a salary column, you might want to choose whole numbers--if we are
01:15talking about a yearly salary.
01:17On the other hand, for certain other kinds of data, maybe you want to allow decimals.
01:21Note the word allow here, in a certain sense, does mean allow, but it also means require.
01:28If we put in a whole number here, it will not accept decimals.
01:31And we are immediately prompted with a 'between' here, and we can put in values.
01:37The last time this was used, maybe these numbers were used.
01:40We don't necessarily have to use those of course; we can use other
01:43constructions as well.
01:45Maybe we simply want to put an upper limit on these values, or a lower limit, and
01:50you can see all the variations that are here,
01:52if we want them between a certain range. Maybe the range we are trying to use
01:56here is between 1,000--and that is inclusive, by the way.
01:59It will allow 1,000 and a maximum of 5000.
02:05So, we want to make sure all entries fall within that range inclusively. Click OK.
02:11We are also saying that it must be a whole number.
02:14So, of course, values like 1,200, that's just going to work just fine. 1300,
02:182300, these are all fine as long as they are within that range.
02:23Let's put in a decimal and see what happens. 2400.5,
02:29and we see a prompt.
02:30We can click Retry,
02:33click in here and make a change, probably get rid of that.
02:35That's certainly is the one option.
02:36If you need to look up the value and it's not here--suppose, you put in the
02:40value here with a decimal and we just know it's wrong, we can't look it up right
02:45now--cancel, of course would be the appropriate response sometimes.
02:49In column C, if these are dollar values, and if we do want to allow decimals
02:54here--once again, selecting the entire column--which is the most likely way to
02:58approach the values for column C, Data Validation, this time we will allow
03:02decimals and between a certain amount, maybe these are dollar amounts.
03:07In the example here, they might range from $50.
03:09We don't necessarily need the decimal in right here if you want. These are
03:13all going to be between $50 and $300--or they must fall within that range, 50 and 300.
03:21So we could type whole numbers.
03:23There's nothing wrong with that.
03:25Let's say a value like 78.
03:26That's going to be just fine.
03:29We didn't really format yet.
03:30We could have done that ahead of time or later. That's all right.
03:36It does allow decimals, but why did that fail?
03:39It's outside the range, so we will do a retry.
03:41That should have been 65.
03:43So I think you quickly get the idea how this works in its basic form.
03:47Just by controlling data at the point of input, you will be up to prevent
03:51long-range problems that occur when data is bad.
03:54Quick and easy to use in its basic form, data validation.
Collapse this transcript
Using the Input message box
00:00In this worksheet, there is a data validation rule established for column B. Now,
00:05if you're not the person who has set up a data validation criterion, you don't
00:09always know that they're going to happen, and when you see them sometimes you
00:12are a little bit surprised.
00:13I am going to put in a salary here for Alicia Franklin of $105,000, and when I
00:19press Enter, I get a message that says it's not valid.
00:23But I don't really have a clue as to what the limits of this are.
00:26I see that there's some kind of rule.
00:28Well, one option here is to just cancel this, and with that active cell in place,
00:34go to the Data tab, choose Data Validation--and actually just click the button
00:40itself--and you will see the rule for that particular cell.
00:43This, by the way, doesn't point out or tell us which other cells have the same criteria.
00:48We can see here that the salaries must be whole numbers between 30 and 90,000
00:53inclusively, and I tried to type in a larger number. That didn't work.
00:57Now, what if we were to alert people ahead of time so that anytime someone
01:02clicked in one of these cells in this particular column that they got an input message?
01:07Let's cancel here and reconsider, and let's act as if we were the ones
01:11setting this up now.
01:12In column B, this is where the data validation is already existing.
01:17Let's go to the Data Validation button and choose Input Message.
01:23And what this is going to give us ultimately is a pop-up box anytime we click on
01:27one of the cells in column B.
01:30So the input message could be fairly straightforward.
01:33Put it in your own words. It must be between 30,000 and 90,000, and you probably
01:42want to put commas in there as well to make it more readable.
01:45You don't necessarily need a title, but a word like caution, reminder, warning,
01:51something along those lines,
01:53as you choose. You don't need a colon, but that makes it look a little bit nicer.
01:57Click OK. So, what happens now?
01:59Well, there you see it.
02:00Anytime we click here, click there,
02:02it looks like I put my commas on the wrong place, but that's easily adjusted.
02:06You see what's happening.
02:08So, that certainly tells the user what the restrictions are, and it's fast and
02:13easy to set up: an input message for data validation.
Collapse this transcript
Using the Error Alert tab
00:00In this worksheet, column B has data validation criteria set up.
00:05And as I click in cell B2, I see the pop-up reminder,
00:09so I am not going to type in a value below 30,000 or above 90,000.
00:14So, I will type in a number, for example, for the particular cell I'm
00:16looking at, 43,218. Not a problem.
00:21I've got another cell, and I am looking at my sheet of paper here. It's $67,509.50.
00:29Enter. And the error message here is pretty generic.
00:33It says it's not valid, and I'm saying to myself, "Well, it falls between the range.
00:37I wonder what's going on here."
00:39I can't figure out what's happening here.
00:41What do we need to do in the example here?
00:44If we were to cancel and then jump to data validation, we will see the rules,
00:49and what we might have overlooked and it might take us a while is that this
00:52must be a whole number.
00:54It wouldn't have made sense possibly for the input message to say that, we
00:59certainly could alter this and that might be one approach.
01:02Another approach could be error alert.
01:05Now, it's a little bit of redundancy perhaps--and I am going to simply take this
01:09text right here and press Ctrl+C--but we also have control over the error alert
01:15that pops up after an error has been made.
01:18So, I am more or less just going to put this right here, but at least it
01:22explains--although not fully--what's going on here.
01:26Why don't I precede this or include it, alter in such a way that the message
01:30reads, "Must be a whole number and," let's say what the way we want, "must be."
01:41Now, some people love this feature, because they like the idea that their words
01:45are here in what looks like an official Excel dialog box. And so sometimes they
01:50will get either cute or fancy sarcastic or have fun with the titles and the
01:54messages sometimes as well, too.
01:56So maybe I will do that just a little bit here by putting in the word WRONG!
02:00That's not that funny or anything, but still, you get the idea.
02:05So, the next time someone happens to either use a number that's out of range--
02:09and again, that would be unlikely with the input message already there--but with
02:12the error alert, we now have control over it.
02:14So, here's a value here, and suppose it happens to be a decimal.
02:18And there is the error message that we see here, in our own words, and it gets the point across.
02:24I often will use either an input message or the message here, the error alert,
02:31not both. But you have the choice of doing both of those.
Collapse this transcript
2. Setting Up Drop-Down Lists (Pick Lists)
Understanding short list and long list variations
00:00To simplify data entry and save a lot of time and ensure accuracy, you can use
00:07Excel's data validation capability that forces entrants to pick from a list.
00:12Imagine in column B here--we'll start with a small example--the only entries we
00:17want to see here in column B are Full Time, Half-Time, Hourly, and Contract.
00:22At the moment those words are found over here in column J. In other words, they
00:26exist in the form of a list.
00:28Now eventually, we would might want to put these elsewhere, but for starters,
00:32it's okay to have them there.
00:33Let's click column B because we want the entire column to be able to contain
00:38only those entries that we currently see in column J. Then on the Data tab,
00:44choose Data Validation.
00:46The Allow option here is List.
00:50Click in the panel for Source.
00:52We don't have to collapse the dialog box;
00:54simply jump out and highlight these cells. Click OK.
00:59In column B now, we see the drop arrow.
01:02Choose the one we want. Come down to the next one.
01:04If you're going through the list somewhat faster, or you're looking on the sheet of paper,
01:08you might consider using the keyboard.
01:10It's Alt+Down Arrow.
01:12There are your choices.
01:13Use the arrow key, come to the one you want, press Enter.
01:17And we don't necessarily have to do them in order, but you can use Alt+Down
01:20arrow in any of these cells.
01:22That's certainly one method. The other method,
01:24the mouse: same idea, same approach.
01:27Do not type the first letter.
01:29You might be fooled into thinking that's going to work okay.
01:32If, for example, I put in the letter C here and press Enter, puts in
01:36Contract like that.
01:38That's only because it's already existed there up above.
01:40So you might find that working for you, but don't count on that, particularly if
01:44you've got a list with entries that begin with the same letter.
01:48If I type H and I am thinking Half-Time, well, that's not Half-Time; it's Hourly.
01:55Click the drop arrow.
01:56Choose Half-Time, if that's what we want.
01:59Now with States here, we've got more States than just four, of course, the order
02:04of these we'll talk about it little bit later, but here's a list of the states.
02:06They're in population order. Same idea, column C here,
02:11Data Validation, Allow, List.
02:13The source of this is column K. Rather than clicking the column letter, it's best to
02:18highlight the actual cells and then click OK.
02:26Even more typing is going to be saved here, particularly with the longer states.
02:30They're in the same order that we see them over there on the right.
02:33Notice one difference here.
02:35When you have more than eight entries, you will see a scrollbar here, and so
02:40the order of these starts to become a bit more important.
02:42Maybe this is Pennsylvania, and so on. Fast and easy.
02:46Not only are we saving time, we're not going to misspell words like
02:49Massachusetts and some other unusual spellings in there as well.
02:53And even more powerful would be what we're about to do in column D. Same idea,
02:57but look at the list in column L. Substantially wider for some of those entries,
03:03and many people misspell Environmental, and there are certainly some other
03:07variations in here that you should be thinking about as well.
03:10What if it's important to you that the names of some of these organizations do
03:14contain an ampersand, for example, the way we see here?
03:18Or maybe this doesn't have a period behind it.
03:20You want some kind of standardized way to display certain names here, and you
03:25want these to be consistent all the time, particularly if a worksheet is going
03:30to use some logic that needs to check for the spelling of these.
03:33So by providing a list for people, you automatically screen out those typos and
03:39you standardize the entries.
03:41One more time here in column D, Data Validation, Allow, List. Click in the
03:47Source panel, jump out and highlight cells L1 down to the bottom. Click OK.
03:55Same idea, easily found, and think of all the typing that we're not doing as
04:01we make these choices.
04:02The pick list idea, the dropdown list, is for many people the major reason for
04:08using data validation.
Collapse this transcript
Sequencing and placing lists
00:00In this worksheet there are three sets of data validation criteria.
00:04In column B we've got status entries.
00:07That list is currently in column J. You see it off to the right.
00:10Column C, state names. We see that off to the right in column K. And then column
00:15D for the Departments, that's out in column L to the right.
00:19When you set up data validation rules it's not a bad idea to have the data on
00:23the same worksheet so you can check out the results,
00:26but as a long-term solution this probably isn't the best location.
00:30Depending upon the environment, you might simply want to hide these columns.
00:35Nothing wrong with that.
00:36Others who are using this particular worksheet might uncover them, possibly
00:41maliciously or by mistake.
00:42They could change the content.
00:44It may not be a good solution.
00:46Another approach could be to take these three columns, move them way, way off to
00:50the right, and then hide the columns.
00:52Better yet, why not put these on a separate worksheet?
00:55Now, in prior versions of Excel, if you did move a list like this to another
01:00worksheet, it wouldn't work properly until you gave them a range name.
01:05It's still true, however, that lists that are used in data validation criteria
01:11must be within the same workbook.
01:14In other words, they must be in this file;
01:17they can be on other sheets.
01:19Prior versions require that if they were, you had to refer to them by a range name.
01:24So we're concerned about the location of the lists.
01:27The other concern is the order of the lists.
01:31Every time we choose a state here, we see the names this way.
01:36We don't necessarily know how to find a state.
01:38Probably, it would've been better to have alphabetized these.
01:41Now if California entries appear very, very often--maybe it's not exactly in
01:46sync with the population--
01:47but if California does appear most often, you might want to keep it at the top
01:51and alphabetize the remainder.
01:53Or based on your analysis of these three entries, if these first three states
01:58comprise the most frequent choices, keep them on top and then alphabetize what's left.
02:03So we want think of the order and we can change the order.
02:07And a third concern is what if we need to add entries to the list? Or change the
02:12order of just an entry or two?
02:14Those are the concerns that we have.
02:16Let's first talk about the idea that where these are located can be changed.
02:21Let's use states for an example here.
02:24We don't want this list right here anymore.
02:26We're going to highlight it, and we can do this in a couple of different ways of course:
02:30right-click and cut, or Ctrl+X. I am going to put this on Sheet1, anywhere out
02:37here. Right-click and paste.
02:39So it's out here now.
02:40So what happens to our pick list? Click here.
02:43There's the drop arrow.
02:45There's the choices. We're all set.
02:47Now, could we've referred to that location from the beginning?
02:50Yes, we could have.
02:51And so when you're setting up a list, you can refer to another sheet.
02:57We probably would want to move the other two lists as well.
02:59And again, they could be on the same sheet;
03:01they could be on different sheets.
03:02Remember, in prior versions of Excel you had to give them a range name first.
03:06And I could've done all three at once.
03:08So I'll just take these together,
03:11right-click, and Cut, and I'll go to that same Sheet1, and put them out
03:16here: right-click, Paste. There we go.
03:18So they're over here now.
03:19They're not on the OtherList over here,
03:27and yet they still work properly.
03:28Now, how about the order of the lists?
03:32We can first with the Department list here.
03:35The most common choice in this list might be Manufacturing, but we have to
03:38scroll to it every time we need to use it.
03:41So let's get it at the top of the list.
03:43How can we do that?
03:44Keep in mind that we could have done this earlier in thinking out how the list
03:48should've been here.
03:49We don't always have that option.
03:51But let's do consider, as we jump back to Sheet1, where the list is.
03:56We want Manufacturing on top of this.
03:58Now, you may know that you can drag a cell with the Shift key and insert it.
04:02So where do we want to put this?
04:04Well, as I drag upward--and I am holding down the Shift key--we want it on top, don't we?
04:10Unfortunately, if we put it on top, the cell reference is not going to follow.
04:14We need to put it right here, at least for the moment.
04:17So I am dragging top or bottom edge with the Shift key, putting it right here,
04:22letting go of the mouse first.
04:24ADC, we're going to drag it downward
04:26using the Shift key. Put it underneath.
04:28Let's go check out that list and see how it's working now.
04:33There's Manufacturing at the top of the list. It works just fine.
04:37We might consider the same kind of thing with states as we suggested earlier.
04:41Let's go back to Sheet1 where I put this list and consider another aspect of
04:45how we adjust the list.
04:47We've added a new Marketing department.
04:49Where are we going to put it?
04:51If we put it at the bottom of the list, it will not appear in here.
04:54Let's type it here first, and maybe it's not going to have that many people.
04:59We should be able find it simply by inserting it in its proper location.
05:03So we'll simply drag this upward with the Shift key and put it
05:07alphabetically right in there.
05:09It appears to have indenting also.
05:11I'll un-indent that. There we go.
05:13And how is our list going to look now?
05:17Marketing will be there alphabetically in the appropriate spot.
05:20The last entry here is Research/ Development, and that is the last entry in the
05:24list as we jump back here and check that out as well.
05:27Research and Development. You want to insert from within.
05:31If one of these organizations no longer exists, you'll want to delete a cell--
05:36not erase it or move, but simply right-click and choose Delete and then Shift cells up.
05:45So we are removing the group, International Clinical Safety, from the list.
05:50It's between Executive Education and Logistics. And now it's gone.
05:54Let's see what happens in our list here as we try and use it.
06:00It's not there anymore, as you would expect.
06:03So the order of the lists, the placement of the lists, and the ability to add new
06:08entries and take out entries are critical features that we need to be thinking
06:12about if we're using the dropdown list capability of data validation.
Collapse this transcript
Creating multitiered lists
00:00In column A in this worksheet, data validation criteria have been set up
00:04so we click the arrow, choose the state we want.
00:09Now what if the city choices that we need here will vary based on the state?
00:14What if we can have a pick list here that only showed us the California cities, a
00:20pick list here that only showed us the Colorado cities?
00:23In other words, a pick list that depends upon data that's in the adjacent
00:28column to the left.
00:30Now this features are a little tricky to set up, but it's really powerful.
00:33I think you can see that it could be applied to other kinds of data as well.
00:37We want a pick list in column B based on what happens in column A. Column A is already set up.
00:44Once again, if you are curious about how those rules are established, just click
00:48on one of these cells,
00:50go to the Data tab, choose Data Validation, and you'll see a rule that shows
00:55that this list is coming out of the cells D1 to D12 on this worksheet.
01:01You may eventually want to have this list placed on a different worksheet, but
01:05for now it's right here, just fine.
01:07Now in column B, we want to be able to say that whatever is in column A is going
01:13to guide us as to what we will be choosing, and the not-so-obvious choice is
01:18going to be a function called Indirect.
01:21Now, we're selecting column B, and so for the moment the active cell is B1.
01:27As we go to data Validation, the Validation criteria under Allow will be List,
01:37and here is the unusual step: =indirect, and we're going to be referring to cell A1.
01:45Just type it in. There it is.
01:47Now, because B1 is the active cell, it means--even though we're not saying this
01:53literally--that for every cell in column B, we want to be looking at the data
01:58to its immediate left.
02:00Now A1 and B1, we don't really care about;
02:03nevertheless A1 is referred to in the formula.
02:06As we click OK here, this message, a bit disconcerting, simply tells us that the
02:12indirect reference to A1 doesn't really work, and we don't care about that.
02:15Do we want to continue? Yes, we do.
02:18Now, this doesn't work yet.
02:20Click the drop arrow. Nothing happens.
02:23We want CA, or California, to refer to these names.
02:28We want IN for Indiana to refer to these names, and so on.
02:32So let's select all of these cells here, and then on the Formulas tab,
02:39Create from Selection.
02:41What we want to do is to create a range name called AZ and have it refer to
02:47those cells to the right, and CA and have it refer to those cells to the right,
02:52and on and on and on.
02:54We want to create names from values in the left column, not the top row. Click OK.
03:02So CA, the range name CA, refers to all these cells, and so when we click here
03:08and use the drop arrow, we see the California cities.
03:12Maybe it's Sacramento here that we are choosing.
03:14For Indiana, we're seeing South Bend.
03:17We might have to scroll here.
03:18We want to use Fort Wayne.
03:20For Colorado, we see some cities.
03:22We want to use Denver, and so on. And as we pick new states here and there,
03:27different states, or whatever states, we will see the choices we need.
03:31There is one aspect to this
03:32that's a little disconcerting, and that is that we do have to do some scrolling
03:35sometimes, and that's because, for example, like in Iowa, the name IA refers to
03:42all of these cells, including the empty ones.
03:45So there is a fix for this as well.
03:47Let's highlight all of these cells here, and get rid of the blanks, by doing what?
03:53On the Home tab, the extreme right button, Find & Select > Go To Special. Choose Blanks, OK.
04:04Just the blank cells are selected. Right-click on any of the blank cells,
04:09Delete, Shift the cells leftward.
04:13Now, that's the least critical part of what we've done here.
04:16But from now on, after we've chosen the state--actually choose states that
04:20doesn't have too many entries in it for the best reference--
04:23click Kansas here. The choice drop arrow,
04:26we don't see those trailing spaces. There we go.
04:30So, a power tool to be sure, that any feature that takes away our ability to--or our
04:36error-prone ability to--make typing mistakes is great, and so using a two-tiered--
04:42for want of a better term here--data validation setup that involves pick lists
04:47is very, very efficient.
Collapse this transcript
3. Date Controls
Setting date limitations with basic controls
00:00Using Excel's data validation criteria, you can control the entry of dates.
00:06Take a look at column B here.
00:07You probably recognize that cell B2 contains an impossible date. The next date is okay.
00:13We want to have control over the date entries.
00:17Let's click column B and take a look at Data Validation.
00:20We find it on the Data tab.
00:24The Settings > Allow > Date, and in its basic form, we see we can control dates
00:30by keeping them within a certain starting and ending date timeframe, and the
00:35same choices that we see with values: not between, so not equal to a certain
00:40date, less than, and so on.
00:42So there are all kinds of different scenarios here as to control dates, and,
00:45by the way, this feature will also trap those impossible dates, like the one
00:50we're seeing in B2.
00:51Now a reminder, too, when you do apply data validation--and let's say in this
00:55example here, we want all these entries to be within the year 2011--
01:00the starting and ending dates are inclusive.
01:02So we'll put in 1/1/11, and then for the ending date, 12/31/11, and click OK.
01:13Note that the entries that are already there are not flagged.
01:16However, it is worth pointing out in Excel, if the columns were wider, we'd see
01:19the bad date this way.
01:20But from now on, certainly in this column, if we do attempt to put in a date
01:25like that--and no matter how we type, it's going to catch this;
01:28this is an impossible date--
01:31And we get the error message.
01:33As in prior examples, anytime you have these error messages, if you wanted to
01:36customize these, you certainly can do that.
01:39But ideally in the best of all worlds, we would get rid of this entry, and from
01:43now on of course, all of our dates are going to be accurate.
01:46The feature is almost self- explanatory in terms of its options.
01:49Once again, under Data Validation for Date type choices in the example
01:54here, we're simply restricting them to a certain timeframe, but we've got
01:58those other choices as well.
01:59It's an easy-to-use feature, and it certainly makes data entry much more reliable
02:05when it comes to date type entries.
Collapse this transcript
Setting date limitation formulas
00:00In this worksheet, data validation rules in columns C require that all the dates
00:05occur in the year 2011.
00:08Column D doesn't have any rules yet, but in putting in the shipping dates for the
00:12items that have been ordered, we are going to make sure, first of all, that the shipping
00:16date is later than the order date.
00:18Now depending upon the environment of course, you might want to set up a rule to
00:22make sure that the shipping date is equal to or greater than the order date.
00:26But what if in this environment that the items being ordered require some
00:31assembly and packaging, and shipping cannot occur within a two-day time frame?
00:36In other words, it has to be more than two days later.
00:39We want to make sure that the entries in column D are more than two days later.
00:43In this case, maybe we don't want to restrict these to the year 2011 because
00:49toward the end of the year some of the items might be shipped in the later year.
00:53So clicking column D here and setting up data validation, the first thought
00:58might be, as you look at the dialog box, that the validation criteria we are
01:01trying to set up here involves using probably a Date criterion, but it is not;
01:07it is going to be Custom-- actually a custom formula.
01:11And the formula will involve using the active cell.
01:16Now, I did select column D, and I highlighted cells starting in D2. We probably see
01:22D2 as the active cell.
01:24See, in the upper-left corner here, to the left of the Formula bar, but we are
01:27seeing D1 right now,
01:29so we will use this in the formula.
01:31The formula here is not so obvious, but once you see it, it will start to make some sense.
01:35= D1>C1+2. Now although literally we don't see the meaning here,
01:45what this means is any entry in column D must be more than two days greater than
01:52the entry in column C. And so even though we are not using D1 and C1, the formula
01:58involves those two cells.
02:00So when we click OK here, sometimes it is a little startling at first when you
02:04see this message, and it simply means the D1 and C1 don't fit our little formula.
02:09Do we want to continue? Yes, we do.
02:12So, simple test here. How about the 5th,
02:141/5/11, the 5th of January? Why is that wrong?
02:21Our formula indicates the shipping date must be more than 2 days,
02:26not 2 days, but more than 2 days later.
02:28We will do a retry and we will make this 6, for example. How's that looking?
02:34Fine, so we can put in any date here that's more than two days later than the order date.
02:39For every single cell here, the comparison is made with the cell to its left.
02:45Now what if we are making adjustments here and we put in a different date?
02:47I am going to put in an 8 here for the shipping date.
02:51Then this thought might occur to you: what if one of the dates that you put
02:55in here is a Sunday?
02:56Maybe you don't do shipping on Sundays. Is that a Sunday?
03:00Or maybe don't do shipping on Saturdays.
03:02Let's also screen out those kinds of entries as well.
03:05Now, you may or may not be familiar with this function, =weekday, an Excel function.
03:11And in looking at a date, it will tell us the day of the week--not initially in a
03:16very meaningful way.
03:17It gives us a value.
03:187 does mean Saturday. 1 means Sunday and so on.
03:23So if we don't want entries for the weekday is equal to 7 or 1, that would be
03:27Saturday or Sunday, we can screen out those as well.
03:31So what I would like to do here is prepare this formula outside of, although you
03:35can certainly do it with inside, data validation.
03:38Let me just copy it in.
03:39So I would like to use this function here along with the current restriction
03:45that the shipping date being more than two days greater than the order date, and
03:49so the function will read something like this. And, meaning we have got two
03:53criteria we want to set up here.
03:56The first one we already wrote, but I will write it again, and D1. Don't really
04:01have to capitalize, but it is easier to see this way.
04:03D1>C1+2, and weekday of D1<>1, meaning Sunday, and another one of these. And I will
04:17just copy this and paste it and change it slightly.
04:20Ctrl+C here, click right here, Ctrl+V, 7. Now the formula is not going to
04:26stay into this cell.
04:27I am just typing it here so you can see it more clearly.
04:30And here's the formula that we are about to use as a validation formula.
04:34And in English, it reads as follows. In column D, every entry must be more than
04:40two days larger than the corresponding entry in column C, and the weekday of the
04:46entry in column D cannot be equal to 1--that's Sunday;
04:50can't be a Sunday--and it cannot be equal to 7, which is Saturday.
04:55So all of this here is going to be the validation formula.
04:59You don't necessarily need to prepare it this way.
05:01You can do this within the data validation dialog boxes, which is what we are about to do.
05:06But here all I am doing is highlighting this and copying with Ctrl+C, and I might
05:11want to leave it here for a moment for documentation,
05:13so I will just put in a space and press Enter.
05:16Go back to Data Validation. Click column D > Data Validation, and instead of this
05:22rule, I'm simply going to press Ctrl+V here to paste in the formula that I just
05:28had displayed earlier.
05:30Sometimes when you look at these, they are a little clipped off.
05:32I am going to drag leftwards so we can see it all.
05:34It looks a little funny at times.
05:36So there is that same formula, which all this could have been prepared within here.
05:40Click OK.
05:41Now the existing date that's there will not change.
05:44Data validation doesn't do anything with existing data;
05:48it is the new data that it is going to react to.
05:51Once again, we get this kind of a message, simply meaning that cells D1 and C1
05:55don't fit our rules.
05:56We do want to continue anyway.
05:58So as an example here, I'll try and change this to the 9th.
06:01That's a Sunday. And we see that it doesn't work.
06:05Now ideally, what we should do here to accompany all this--and that was shown in
06:10previous movies--going back to Data Validation, provide either an input message
06:15that describes the dates cannot be Saturdays and Sundays, or possibly and create
06:21an error alert message that explains why an entry is incorrect.
06:25You don't necessarily need to do those, but it's helpful to explain to some
06:28people what went wrong.
06:29So on a different entry here and I'll just type in a date here, 1/8/11.
06:35That's a Saturday and we get the same message. And of course a correct entry here
06:39looks like 7 is going to work there. Here we go.
06:42That's a Friday. That's just fine.
06:43So you get the idea.
06:45The more you know about Excel functions, the more inclined you are likely be to
06:50use more sophisticated approaches to controlling data.
06:53So column D from now on has entries that have to meet all three of the criteria
06:58that we set up in this data validation formula.
Collapse this transcript
4. Time Controls
Limiting time entries with basic controls
00:00In this worksheet, there is a data validation rule for column B that restricts
00:05all of the dates to the year 2011.
00:07If this company only takes orders from 6 a.m. until 8 p.m., similarly, we'd like
00:13a rule in column C related to times that makes sure that all the time entries
00:18fall within that range.
00:21Click column C, on the Data tab, Data Validation. And under Validation criteria,
00:27Allow > Time, and similar to Values and Decimals and Data entries, we start off
00:34by at least exploring some of the choices here between a certain timeframe,
00:39equal to, greater than.
00:40Certainly, equal to wouldn't make any sense here, but greater than, less than might
00:44apply sometimes between.
00:46So we're going to put in the Starting time of 6 a.m.
00:48For example, 6:00 would be the way to enter it.
00:52We could also put in 6 a.m. if we wished. Ending time, 8 p.m.
00:56We might type it this way.
00:58It should work too. Click OK.
01:01So put an entry in here, 6:30.
01:05We could type the entry that way. That's just fine.
01:07How about 6:30 p.m.?
01:09You could type it this way.
01:11I would caution you though: probably you want to do some formatting here.
01:14You could type it this way if you wish, by the way. That's fine, too.
01:17But let's put in a time that's outside the frame.
01:194:30 is automatically interpreted as 4:30 a.m.
01:24That's outside the frame of the data validation criteria that we set up,
01:28so obviously that's not acceptable.
01:31How about 8:30 p.m.?
01:31Whether you type it 8:30 p, that is a valid entry if we didn't have data
01:38validation rules, but it's not acceptable here.
01:40If we type in 24-hour style--17:00, for example, that's 5 o'clock. Do it that way.
01:49That's just fine.
01:50So a variety of techniques here for entering the data, but data validation is
01:54focused only on the values that you put in, not the display.
01:58So ideally, on the timeframes here, what you can do, either before or after
02:02setting up the data validation, simply right-click column C--one of many ways
02:07to get to a Format Cells--and put in a standard timeframe that fits your particular needs.
02:12The two most common ones are the second one, the so-called 24-hour style, or
02:17the third one that shows a.m. p.m.
02:20Now, no matter how you type this, if the time is within the valid range, it's
02:24going to appear in this style.
02:26So a sale at 4:30 p.m. you could type it as 16:30.
02:32It will display this way.
02:33It's well within the timeframe.
02:35If you try and put in 8:30 p.m., type it this way.
02:38It's not going to work, as you would expect, and so on.
02:41So, easy to set up, and most of the time I think when you're using this
02:44particular data validation criteria set for Time, it's likely to be within
02:50a certain timeframe: beginning and ending time.
Collapse this transcript
Limiting time entries with formulas
00:00In this worksheet, a validation rule has been set up in column B to restrict all
00:04the dates to the year 2011.
00:07In column C, there has been set up a time validation rule that makes sure that
00:13all of the times are from 6 a.m. until just short of 8 p.m.: before 8 p.m., 6
00:18a.m., and thereafter.
00:21Someone has decided that it's going to be a little bit easier to read under
00:24tabulate information
00:25if the actual minutes that occur in these times are multiples of 15--
00:30in other words, if these were 4:30, 4:45, 10:30, 10:45, 11 o'clock, 11:15.
00:36We want all these entries to have the minutes to be either zero, 15, 30, or 45.
00:40Now you may or may not know that there is a way to calculate actual minutes
00:46here, and this particular function right here will simply show us the minutes of
00:52a particular data entry, 37, and we can see quickly here a 32 and 45.
00:58Now the original data validation rule here--click column C, Data Validation on
01:05the Data tab--restricts the entries.
01:08You see the timeframe here.
01:10Under Validation criteria, we use Time.
01:13Now, if we also want to control the minute entry here, it's going to require
01:17a formula, and we'll have to use the Custom Validation criteria entry here instead.
01:25So we still need to incorporate this idea that we want to keep them within that timeframe.
01:30So I think it's best when we do this sort of thing to prepare the formula
01:34outside of the Data Validation dialog box, and then paste it in.
01:39So perhaps starting right here--and I could drag this up even though C1 doesn't
01:43have a date, and we are going to be using this as one of our three criteria.
01:48We want to use the AND function to encompass all of these.
01:52So in English, we would like to say that the minute entry of all of the dates
01:56that we have here are going to be evenly divisible by 15, and you might or might
02:02not be familiar with a function called MOD.
02:04The MOD function allows us to calculate the remainder in a function.
02:10So let's say that we will have a value here.
02:13It's going to be one through 60.
02:15The MOD function allows us to say, if we divide this value by 15, we're going
02:21to get a remainder.
02:22We want to make sure that this remainder is always zero.
02:26So if the number is a 15, we divide by 15. The remainder is 0.
02:30If it's a 30, we divide by 15.
02:32The remainder is 0. And so on.
02:35So that's quite a bit happening here all at once,
02:37but this is one of the three criteria we need.
02:40The other two relate to the time.
02:43There is another function called Hour. We'll choose Hour.
02:46We want the hour of C1 to be greater than or equal to 6, meaning 6 a.m.,
02:53comma and a similar construction,
02:56so I'll just copy this and change it slightly. Ctrl+C here.
03:01Click here, Ctrl+V. We also want to make sure that the hour is less than 20, and
03:07then put in the less than symbol here.
03:10So, these three criteria. Now, the formula we're going to paste in to the data
03:15validation rule, but just to check it out here
03:17again, the three things we're trying to do is to make sure that the minute
03:20entry is evenly divisible by 15, that the hourly entry is greater than or equal
03:26to 6--meaning 6 a.m.--and the hourly entry is before 8 p.m. is less than or equal to 20.
03:33That's the hour of the day.
03:35Now we wouldn't really leave the formula here for now. I am going to put a
03:39space in front of it, so we can--at least for a while--highlight all of this to
03:44copy it, Ctrl+C, and simply press Enter to put it here for the moment.
03:48Let's come back to column C, Data Validation.
03:53We're not going to be using the existing criteria the way it's structured here.
03:57We want to use Custom. And instead of this entry here, I am pressing Ctrl+V to
04:03paste in the long formula that you just saw.
04:06So there is our new formula.
04:07We'll click OK. And this currently means that simply cell C1 doesn't work. And we
04:13don't care about that.
04:14We do want to continue.
04:16Now, data validation does not do anything with existing data,
04:20so we'll have to change these manually.
04:22Let's make a new entry here.
04:23Here is another entry and it's 1:45 p.m.
04:27How about 1:47 p.m.? In other words, we'll violate the rule.
04:31You can type it this way.
04:32That's a valid entry under normal circumstances, but not here. It's not valid.
04:36Let's do a retry.
04:38Change that to 5, press Enter, and it does work, and we can try a few more
04:43just to test it out.
04:45It's also a valid way to type an entry if you simply type in, if it's
04:49only hour, for example---
04:51What if it's 2 p.m.? 2 space p is a valid way to type these. There we go.
04:56Now also to accompany this, you should use formatting in column C that
05:01standardizes your entries.
05:03In the example here, I previously had it set up, but you could easily change it if you want to.
05:08I'll right-click column C--one of many ways to get to Format Cells--and
05:13consider either this time format that uses the a.m. p.m., or the previous one
05:18that uses the 24 hour style.
05:20Whatever fits your needs best here,
05:22that should be done also, either before or after you apply the data validation.
05:26But in column C, we've got a pretty substantially long formula.
05:31At first, it looks a little complicated,
05:32but ultimately, it's doing three things.
05:35It's making sure that any minute entry that we put in here, once we've set up
05:39the rule, is going to be an even multiple of 15, and the hours are going to be
05:44within 6 the 6 a.m. to 8 p.m. timeframe.
05:47So in the examples here, we can jump back in and change them. And, by the way,
05:51we can't change them to a 6, or a 3 or something like that for the minute.
05:55This will not work. But we certainty could change it to a zero or make it be 45.
05:59If it's as long as a multiple of 15 and to be consistent, we would do this one
06:04as well, too, probably change it to that.
06:07So quite a few elements of creativity you can use when setting up time formulas by
06:11way of data validation.
Collapse this transcript
5. Text Length Controls
Limiting text length with basic controls
00:00With data validation, you can control the length of entries in a range of cells.
00:05For example, in column A, if we want to put in Social Security Numbers, these are
00:09always nine characters in length, and we don't want any entries that consist of
00:13eight or 10 characters, or anything else that's not nine.
00:17Employee IDs in your organization might be always six characters in length.
00:22You want to make sure that that's true by putting in a validation rule here, too,
00:26that controls the length of the entry.
00:28Phone numbers these days are nearly always 10 characters.
00:32You could put restrictions here, too, by way of data validation. And although this
00:36feature is called Text length, we could even use it for certain kinds of
00:40numerical information, although usually there's a better way by using other
00:45criteria, for example, to control prices.
00:47Let's focus on column A here.
00:49We want to make sure that the Social Security Number entries here are
00:53always nine characters.
00:55You should also accompany this with an Excel feature for formatting.
00:59I'm right-clicking column A here to go into Format cells. There is a Number
01:04category called Special, and one of its choices is Social Security Number.
01:09What this does is that in the display of the values we will see the hyphens.
01:15If you don't use this feature, you won't see the hyphens, and it's not a great
01:19idea to type them anyway, so use this.
01:21This is highly recommended.
01:23Do that. Now you can do this before or after the data validation rule.
01:26Let's go to the Data tab, Data Validation.
01:30We simply want to ensure that the length of the entry here, the Text length,
01:36is not between certain number of characters, but it is exactly equal to, in this case 9.
01:44That's the restriction.
01:45I'm just going to type in nine characters here.
01:47Not a problem. Eight characters, not good enough. Retry.
01:57I missed the one in front of it, whatever it was. Of course, I am making these up,
02:00and it is not same as yours, And sure enough, if we put in 10 characters,
02:06that's too many, and so all of these fail.
02:08As always with data validation, you might want to put in either an input message
02:13or an error alert message that explains why these entries are incorrect. But you
02:18see how easy it is to set up.
02:20And then the first is employee ID, of course same idea.
02:22I want to complete this, but here, too, you might want to consider a Text length.
02:26And if your organization uses employee IDs that are exactly 6 characters long,
02:30then that's what you would use here as well.
02:33And for Phone Numbers, too, same idea. Here, too, as with Social Security Number, a
02:37good idea to format these and use this special built-in category for phone
02:42number, and this we will put in the parentheses and hyphens.
02:45It should work just fine.
02:47So the data validation rule here to accompany the formatting should also include
02:52the Text length entry that is equal to 10, 10 characters.
03:00So here's a phone number. Good enough. Might need to make the column wider. There we go.
03:07And sure enough, if we type not enough characters, we get this kind of a message,
03:13as you would expect. And if we type too many, same idea.
03:16So fast, easy ways to control Text length, and I mentioned just briefly,
03:20you could use these for numbers.
03:22If all the prices for particular items in this group are three characters, sure,
03:27you could do that. But it would be probably better in a situation like this,
03:30rather than using Text length--and again, I emphasize you can use Text length
03:34for numbers--but probably it would be better here to use either whole number or
03:38decimal, and then as the case might be, put in the minimum and maximum.
03:42That would be a better way to use this particular feature here.
03:45But there's no question that using Text length has its merits, as we've seen
03:49in the examples here.
Collapse this transcript
Limiting text length with formulas
00:00In column A of this worksheet called Text Formulas,
00:03there is a data validation rule that ensures that the Social Security Numbers
00:08are always nine characters long.
00:10That number must be that length;
00:12it can't be any more or any fewer.
00:14And that's just fine. It works great here.
00:16Notice that there's no formatting that exists here.
00:19That probably should be applied, but that is a different issue.
00:21So I'm going to put in a Social Security Number, and probably no one would ever
00:25type one like this, but you certainly could.
00:27This has nine characters, but note that it does have a letter in it.
00:31And here and there someone might see an I or zero and somehow think that might
00:36occur there, and you could certainly imagine certain kinds of code numbers where
00:40maybe it's not clear that they should be numerical, but here it is. And the data
00:45validation rule as it exists doesn't work right now.
00:48So let's change it and make sure that the entry is numerical.
00:53The data validation rule that we already have is in place, and here it is, and
00:57it's all about the Text length.
00:58If we want to use other criteria along with this, we have to change the
01:04choice here to be Custom, meaning custom formula, and there are two things we want to do here.
01:10We want to retain this idea, so we need the And function, = And, and then the
01:16two criteria within this will be, first of all, the one related to length.
01:21You might or might not know
01:22there is a function called LEN, meaning length.
01:25You want to be sure that the length of these entries--and we'll use A1; it acts as
01:30a substitute for all cells in column A--we want to be sure that the length of A1 equals 9.
01:37That's one of our two criteria. And the other one is that we want make sure that
01:42this is a number. And sure enough, there's a function called ISNUMBER.
01:48We want to make sure that A1 is a number. Both criteria we want to be true here. Click OK.
01:54Now data validation doesn't alter existing entries, so that's still incorrect,
01:59and we would change it manually.
02:00But let's just test this out a little bit.
02:02Let's put in something like that B entered. 9 characters, but it doesn't work.
02:11Now because we have a new data validation rule and just revisit that briefly
02:17here back to Data Validation to show it again.
02:21Two criteria: the length must be 9 and the entry must be a number.
02:26Now you could have another kind of code, something along the lines of what you
02:30might be seeing in column B. This might be three characters, four characters,
02:34five characters, whatever. But let's say that the rule here is that this must
02:38begin with a number. And the first one does, the second one doesn't.
02:43A little bit of background in text functions might help here, and so if you had
02:47this kind of need, you might know an easy function to use is called Left.
02:52There is a similar function called Right.
02:53This simply allows us to look at a cell and to extract the left character--
02:59that would be 1--the two leftmost characters, a 2, and so on.
03:03So the leftmost character here, sure enough, is a 2, and if we copy the formula
03:08down to here, it's a T.
03:11Now, is this a number?
03:14Here's a function called--which we just saw--NUMBER. Is this a number?
03:20Well, it looks like a number to me.
03:23This one doesn't; that seems to be doing the right thing, but this doesn't, so
03:26that might throw you a little bit.
03:27There is another function we need here, and it's called VALUE, and so we want to
03:33take the value of this. Is that a number?
03:40Yes, it is.
03:41So backtracking a little bit, we want to create a data validation rule here that
03:46makes sure that the leftmost character is a number, so a data validation rule
03:53here and here, too, a custom function. Equal. We want to be focused on only the
04:01leftmost character here, so L-E-F-T the left character. And once again, we use
04:08the active cell as a substitute for all the other ones. Comma 1, that means the
04:13first character only.
04:15We want to be sure that that is a number, but we want to be looking at the value
04:23of that leftmost character. And often when you do these, of course, it's really
04:30to make a mistake regarding how many parentheses we need here. There we go.
04:34I think that looks right.
04:36Sometimes when you click OK here, you are warned that your formula is incorrect,
04:41but it could be syntactically correct and logically wrong.
04:44In this case, the syntax is correct.
04:47Once again, existing entries are not altered.
04:50Let's see if this works. 4, 5, 6, of course that should work.
04:53And, by the way, this doesn't have any restriction of length just yet--maybe
04:56we'll do that later--but that's in place and that seems to be okay.
04:59But how about those that begin with a letter?
05:01That one is not acceptable.
05:03And as always, we might consider changing the error alert to explain what's going on.
05:07So the more you know about various Excel functions, the more likely you are to
05:12expand your use of data-validation type formulas, and in this example here, we
05:17saw how it was used to control various text-length types of entries.
Collapse this transcript
6. Specialized Custom Formula Controls
Preventing duplicate entries
00:00For certain kinds of situations, you might want to preclude duplicate entries.
00:05In other words, you might prefer unique entries--say, for example, in column B.
00:10The first employee ID and the third one happens to be identical.
00:14That's the kind of thing you sometimes need to prevent.
00:17There's no obvious choice here under Data Validation, Data Tab > Data Validation.
00:23None of these choices here seems to tackle that issue head on.
00:28However, a custom formula will allow us to get there.
00:31Let's build this outside of the Data Validation dialog box first.
00:36The idea is, every time an entry is made, we want to compare this with other
00:40entries in the same column, to make sure that it exists once and only once.
00:46You may be familiar with a function called COUNTIF.
00:51We're looking in column B, throughout column B, comma. And let's just imagine for
00:58the moment we're talking about cell B2. You can click on it or type it.
01:02So what we're going to get out of this is the count of how often the B2 entry
01:07appears in column B. It appears there twice.
01:12Now, all we really need to do is to take a variation on this and in effect say,
01:18'We want the count of any cell that gets entered here.
01:22We want to make sure that it's there once and only once,' the actual current entry.
01:27So this our starting point and will change a bit, because we will be referring
01:32to B1 in our formula.
01:33Let's simply copy this, Ctrl+C, press Escape, go to column B, and set up a data
01:39validation criteria formula under Allow > Custom, a custom formula.
01:49I'm going to press Ctrl+V now to paste this in.
01:51It's not quite there.
01:53We want to make sure that the count of B1, since that's currently the active
01:57cell, it acts as a substitute for all the others.
02:01And anytime we make an entry, we want to compare that entry with all the
02:05entries in column B. So the number of times that this item should appear here
02:10must be equal to 1.
02:11In other words, it's there once and only once. Click OK.
02:16So, test it out again here.
02:18I'm going to type in '134267'. The entry is already there.
02:23As always, we might want to customize the error alert message to indicate what's
02:28happening here. Slight change. Maybe it was a missed type entry. Put an 8 in.
02:32That should work just fine.
02:34Remember, the prior entries don't get screened out yet.
02:37That's up to you to clean those up, if you're applying the rule with data already here.
02:41We'll change that to a 5. It shouldn't be a problem.
02:44That's what it should have been all along. There here we ago. But we certainly can't
02:48enter in that top number, 219876. It's there once.
02:53This would be twice. Can't do it.
02:56So you can restrict unique entries using this data validation formula here, once
03:01again, display of it, as we see it right here.
03:04And of course, in different columns use different letters there.
03:07It works fine, easy. Familiarity with the COUNTIF function helps you understand it
03:11better, but it's easy to use.
Collapse this transcript
Locating data validation rules
00:00As you work with certain worksheets, you may encounter a validation rule and
00:05you didn't know it was there.
00:06For example, I might click in column C3 here. Now, I haven't put in the person's
00:10name yet, nor the department, but I'm going to put in his salary right now, and
00:13it's 102,000. And I type this, and I get a message.
00:18And the message doesn't tell me what's wrong with it or anything, so I'm a
00:20little concerned about that.
00:23It raises the larger question, are there other data validation criteria in place
00:28in this worksheet, and how do we find them?
00:30And with it this worksheet has many, many more columns?
00:34You would want to know where data validation exists.
00:38There are two easy approaches to it.
00:41On the Home tab, the rightmost button, Find & Select, click it, and here is a
00:47choice that says Data Validation.
00:49When you make this choice, it highlights all cells in the current worksheet that
00:54have a data validation rule.
00:56Now it's up to you to figure them out. Possibly, although certainly not in this
01:00case, adjacent columns might have the same rule. Certainly not here. But it
01:05looks as if, as is often the case, there's a data validation rule for column A,
01:10column C, and column D. The next step often is, for the particular column in
01:15question, say in column C, right-click on one of the entries and just in column C,
01:22click on just one of the entries in column C, and then on the Data tab, jump
01:27into Data Validation to see what the rule is.
01:31All the entries here have some kind of a restriction.
01:34It says, the maximum salary here is 99999.
01:38So the 102,000 wasn't accepted and now we know why.
01:42If you do have a worksheet with many, many different cells with data
01:45validation and sometimes they are ranges that are not necessarily in sync with columns and rows,
01:51sometimes what you'll want to do after clicking on a cell is say, I want to know
01:56which other cells have the same rule as this one?
02:00Again, logic usually rules here, but another approach to this is to click the
02:05Home tab and then go to Find & Select, but this time choose Go To Special.
02:13And here's a choice called Data validation at the bottom.
02:17There are two choices here.
02:19By clicking Same, what we're saying is, let's highlight all the other cells in
02:25this worksheet that have the same data validation criteria as the current cell.
02:31Now, many times this is obvious, but not always. Click OK here, and sure enough,
02:35we are expecting all of these cells here have the same data validation criteria
02:41as the cell in question.
02:43And from there we could then go to Data > Data Validation and look at the rule in place.
02:51These cells here work off of a pick list over from column M, and cell D1 is not
02:57part of the list, as it sometimes could be.
02:59Two ways to check out where data validation cells exist in a worksheet and where
03:04necessary, to see which other cells have the same data validation criteria as
03:10the current cell does.
Collapse this transcript
Conclusion
Goodbye
00:00After viewing this course, you might want to visit lynda.com and view other
00:04Excel offerings as well.
00:06Simply click on Software, go to the letter E, and choose Excel, and there is an
00:10ever-expanding list of other Excel courses.
00:14You might want to check out my Excel 2010 Power Shortcuts Course or Dates and Time Course.
00:20You I might want to check out Bob Flisser's Essential Training or Real-World
00:24Projects with Curt Frye, and be sure to check back here from time to time as the list grows.
00:30Thank you for watching.
Collapse this transcript


Suggested courses to watch next:

Cleaning Up Your Excel Data (1h 26m)
Dennis Taylor

Managing and Analyzing Data in Excel (1h 32m)
Dennis Taylor



Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,141 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked