0% found this document useful (0 votes)
23 views11 pages

Week 8 Data Validation TASKs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views11 pages

Week 8 Data Validation TASKs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Specifying Validation Criteria

Enter the month number (1-12):

Types of Validation Criteria You Can Apply


1. Whole Number
the entry must be a whole number
greater than or equal to 100:

2. Decimal
the entry must be between 0 and 1:

3. List Regions: East coast


the entry must be only regions from list: West coast
East coast Midwest

4. Time
the data entered must be greater than
13:00

5. Date
the data entered must be greater than
or equal to January 1, 2022:

6. Text Length
the length of text entered must be
between 4 and 10 characters:
41 67 85 65 30 31 88 71 13
29 8 56 2 72 78 18 78 11
90 52 33 89 90 0 31 12 52
28 35 98 76 93 61 -7 90 89
-1 -9 76 70 92 91 79 69 44
2 21 15 91 79 38 33 50 96
1 53 85 42 72 91 96 28 91
73 4 64 59 57 4 57 33 -2
0 12 1 57 67 32 58 61 37
31 46 14 74 85 97 63 22 64
33 24 79 62 29 14 39 37 -7
38 -1 14 82 35 72 -6 51 72
100 21 41 31 96 61 92 5 54
76 45 34 10 99 44 77 76 -10
99 50 28 36 -5 74 31 34 53
42
Excel can draw circles
81
around invalid entries (in
67 this case, cells that aren’t
87 between 0 and 100).
80
30
90
88
49
75
33
58
6
11
86
Texts 1. Accept only text entries

The ISTEXT Function is categorized under Excel


Information functions. The function will test if a given
value is a text string or not. If the given value is text, it
will return TRUE, or if not, it will return FALSE.

Numbers 2. Accept only number entries

The Excel ISNUMBER function checks if a cell in Excel


contains a number or not. It will return TRUE if the
value is a number and if not, a FALSE value. For
example, if the given value is a text, date, or time, it
will return FALSE.

Odds 3. Accept only ODD number entries

The ISODD Function returns TRUE if the number is odd


or FALSE if the number is even. It is a reference
function that helps to indicate if a given number is odd
1 or not.

Evens 4. Accept only EVEN number entries

The ISEVEN Function will return TRUE if the number is


even or FALSE if the number is not even, or odd.
101 Accept value only if it is larger than the previous cell
1 32 Accepts only non-duplicated data
2 33
3 34 Formula for data validation:
4 35 =COUNTIF($A$1:$C$20,A1)=1
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Alpha Accept entry only if it begins with A
apple
Amos Formula for data validation:
=LEFT(A1)="a"
Monday, May 23, 2022 Accept date entry only if it is a Monday.

Formula for data validation:


=WEEKDAY(A1)=2
Meat: $120 Accept a value only if it doesn't go over the budget.
Vegetables: $25
Fruit:
Snacks:
Alcohol: Party Budget: $500
Soft Drinks: Total: $145

Formula for data validation:


=SUM($B$1:$B$6)<=$E$5
Pesko Part-time Workers Weekly Pay
Hours
Staff ID Surname Initial Pay Department Nat Ins Tax Final Pay
Worked
M/141 Abbot R £0.00 £0.00 £0.00 £0.00
M/289 Arlington T £0.00 £0.00 £0.00 £0.00
F/112 Brown T £0.00 £0.00 £0.00 £0.00
F/219 Davies F £0.00 £0.00 £0.00 £0.00
F/881 Davis G £0.00 £0.00 £0.00 £0.00
M/448 Davis W £0.00 £0.00 £0.00 £0.00
F/66 Fox S £0.00 £0.00 £0.00 £0.00
M/557 Kelsey A £0.00 £0.00 £0.00 £0.00
M/44 Marsh H £0.00 £0.00 £0.00 £0.00
M/191 Oliver H £0.00 £0.00 £0.00 £0.00
M/352 Potts B £0.00 £0.00 £0.00 £0.00
F/336 Taylor M £0.00 £0.00 £0.00 £0.00
TOTAL 0 £0.00 £0.00 £0.00 £0.00

Hourly Pay Rate 9.99


Nat Ins Rate 7%
Tax Rate 19%

Department Names
Accounts
Admin
HR
IT
Marketing
Sales
Web Sales
1. Set data validation on cells D4:D15 to restrict
users to only typing in a whole number between 0
and 26. If the user enters invalid data, Excel will
display a special alert explaining the error that
choose numbers between 0 and 26.

2. In column F we want to choose the department


name from a list to avoid typing errors.
Set a data validation list for cells F4:F15, using the
range name that is already set up on the DV
Range tab called Department Names.
When you click in a cell in column F, you should
now be able to choose a department name from
the drop-down list.

You might also like