Microsoft Office Tutorials and References
In Depth Information
Data Validation
The following formula is a variation of the preceding validation formula. In this case, the formula
ensures that the entry begins with the letter A and contains exactly five characters.
Accepting only a date that’s a Monday
The following data validation formula ensures that the cell entry can be interpreted as a date, and
also that the date is a Monday:
This formula assumes that the active cell in the selected range is cell A1. It uses the WEEKDAY
function, which returns 1 for Sunday, 2 for Monday, and so on.
Accepting only values that don’t exceed a total
Figure 19-30 shows a simple budget worksheet, with the budget item amounts in the range
B1:B6. The total budget ($500) is in cell E5, and the user is attempting to enter a value in cell B4
that would cause the total to exceed the budget. The following data validation formula ensures
that the sum of the budget items does not exceed the budget:
Figure 19-30: Using data validation to ensure that the sum of a range does not exceed a certain value.
Search JabSto ::

Custom Search