0804 Data Validation - Dates w. Error Alert and Circle Invalid Data

Advanced Excel Crash Course Section 8: Data Input
3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€95.37
List Price:  €133.52
You save:  €38.15
£78.86
List Price:  £110.41
You save:  £31.54
CA$143.25
List Price:  CA$200.56
You save:  CA$57.30
A$158.61
List Price:  A$222.06
You save:  A$63.45
S$134.06
List Price:  S$187.69
You save:  S$53.63
HK$777.33
List Price:  HK$1,088.29
You save:  HK$310.96
CHF 89.75
List Price:  CHF 125.65
You save:  CHF 35.90
NOK kr1,116.28
List Price:  NOK kr1,562.84
You save:  NOK kr446.55
DKK kr711.28
List Price:  DKK kr995.83
You save:  DKK kr284.54
NZ$175.84
List Price:  NZ$246.19
You save:  NZ$70.34
د.إ367.21
List Price:  د.إ514.12
You save:  د.إ146.90
৳12,163.75
List Price:  ৳17,029.73
You save:  ৳4,865.98
₹8,720.22
List Price:  ₹12,208.66
You save:  ₹3,488.43
RM444.40
List Price:  RM622.18
You save:  RM177.78
₦149,953
List Price:  ₦209,940.20
You save:  ₦59,987.20
₨28,020.42
List Price:  ₨39,229.71
You save:  ₨11,209.29
฿3,389.61
List Price:  ฿4,745.59
You save:  ฿1,355.98
₺3,642.01
List Price:  ₺5,098.96
You save:  ₺1,456.95
B$579.75
List Price:  B$811.67
You save:  B$231.92
R1,841.97
List Price:  R2,578.83
You save:  R736.86
Лв186.66
List Price:  Лв261.33
You save:  Лв74.67
₩144,257.08
List Price:  ₩201,965.68
You save:  ₩57,708.60
₪354.92
List Price:  ₪496.90
You save:  ₪141.98
₱5,793.82
List Price:  ₱8,111.58
You save:  ₱2,317.75
¥14,983.16
List Price:  ¥20,977.02
You save:  ¥5,993.86
MX$2,037.45
List Price:  MX$2,852.51
You save:  MX$815.06
QR364.99
List Price:  QR511
You save:  QR146.01
P1,380.05
List Price:  P1,932.13
You save:  P552.07
KSh12,928.70
List Price:  KSh18,100.70
You save:  KSh5,172
E£5,063.09
List Price:  E£7,088.53
You save:  E£2,025.44
ብር12,932.34
List Price:  ብር18,105.79
You save:  ብር5,173.45
Kz91,457.52
List Price:  Kz128,044.18
You save:  Kz36,586.66
CLP$94,234.57
List Price:  CLP$131,932.17
You save:  CLP$37,697.60
CN¥726.74
List Price:  CN¥1,017.47
You save:  CN¥290.72
RD$6,240.81
List Price:  RD$8,737.39
You save:  RD$2,496.57
DA13,478.77
List Price:  DA18,870.82
You save:  DA5,392.05
FJ$230.24
List Price:  FJ$322.34
You save:  FJ$92.10
Q771.88
List Price:  Q1,080.66
You save:  Q308.78
GY$20,945.55
List Price:  GY$29,324.61
You save:  GY$8,379.05
ISK kr13,876.61
List Price:  ISK kr19,427.81
You save:  ISK kr5,551.20
DH992.98
List Price:  DH1,390.21
You save:  DH397.23
L1,864.97
List Price:  L2,611.03
You save:  L746.06
ден5,871.15
List Price:  ден8,219.85
You save:  ден2,348.69
MOP$801.63
List Price:  MOP$1,122.32
You save:  MOP$320.68
N$1,842.07
List Price:  N$2,578.97
You save:  N$736.90
C$3,684.37
List Price:  C$5,158.26
You save:  C$1,473.89
रु13,956.33
List Price:  रु19,539.43
You save:  रु5,583.09
S/368.47
List Price:  S/515.87
You save:  S/147.40
K403.08
List Price:  K564.32
You save:  K161.24
SAR375
List Price:  SAR525.02
You save:  SAR150.01
ZK2,835.84
List Price:  ZK3,970.30
You save:  ZK1,134.45
L474.66
List Price:  L664.54
You save:  L189.88
Kč2,382.26
List Price:  Kč3,335.26
You save:  Kč953
Ft38,113.13
List Price:  Ft53,359.91
You save:  Ft15,246.77
SEK kr1,066.13
List Price:  SEK kr1,492.63
You save:  SEK kr426.49
ARS$106,101.37
List Price:  ARS$148,546.17
You save:  ARS$42,444.79
Bs691.82
List Price:  Bs968.58
You save:  Bs276.75
COP$413,023.54
List Price:  COP$578,249.48
You save:  COP$165,225.94
₡50,633.14
List Price:  ₡70,888.42
You save:  ₡20,255.28
L2,559.87
List Price:  L3,583.93
You save:  L1,024.05
₲793,171.73
List Price:  ₲1,110,472.16
You save:  ₲317,300.42
$U4,261.82
List Price:  $U5,966.72
You save:  $U1,704.90
zł394.65
List Price:  zł552.53
You save:  zł157.87
Already have an account? Log In

Transcript

Hi there, in this continued series of data validation exercises, I have a task in this video, the task is in the column B, all the data that is entered by the end user must be between first January of 2012. And before or on 31st, December 2012. That is the range. Now, she at this moment can give a date which you may be outside this range correct. I want to have an input validation, data validation, which quickly pops up with an error saying that this is not allowed. Now, this is very useful in case you're preparing some kind of a form, and you expect the user to be making sure the input is in within the desired range.

So now let's see how to populate that particular data validation. I choose the range of cells where the users are expected to feed in the date. I go to Data tab. Then I go to data values. And I click on Data Validation. Okay.

Amongst the option which says allow any value, I go ahead and choose date allow date that lies between. And you notice the option does say greater than or equal to or less than or equal to, but at this moment, what we are going to choose is between, say choose between and make sure that the date that you're giving is in the format which Excel understands. So if my current default settings of date is MD vi format, I will give the date in that particular format. So I give one slash one slash 2012. And the end date has to be twel indicating December slash 31, slash 2012. Now once I've done so, I press OK. And let me test this first April 2030.

Job. It gives me an L which says the value you entered is not valid. A user has restricted values that can be entered into the cell. So it asks you to redraw, in which case this time, let me give first April 2012. And if you press enter, there you go, it has accepted. And not only that, you can also populate a message box, which defines the exact nature of an error and exact action that needs to be taken.

So I choose the same thing again, I go to data, I go to data validation. I keep the settings same, but I go to error alert in the error alert. I have a message saying in valid date. And then in the error message, I say you must enter a date from the year 2012. Let me now press OK. And let me test this with a revised data which is falling outside the range. So first of June 2013, let's say Aha, this time, it's a Customize message that is given to me It says invalidate, you must enter a date from the year 2012.

So there you go. This is the basic form of data validation with respect to dates, although Be cautious that if somebody has written a date outside this range, and he copies that cell and paste as a special value is a special value, okay? It accepts that, given the fact that the data validation still exists. So if you're getting such values, and you're not sure whether anybody has used a special value, then you may choose the entire range, go to data, data validation and say circle invalid data. In case it is not as per the rules, it will circle that and once you've found that out, you can go ahead and again say clear Validation Service.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.