00:00If you want to prevent your user from entering duplicate data in your Excel spreadsheet and at the same time produce pop-up error message, this is how you do it.
00:09First, select the area that you want to apply the rule to and after that, make sure you are on data tab here.
00:15Click on data validation, data validation again.
00:19On this pop-up window, you're going to select custom.
00:23On this formula section, enter the following formula.
00:26So in this formula, A2 means a starting row and A10 means the last row.
00:33If you have more than that, of course, you're going to have to change this to A12, 11, or maybe 100.
00:38And the second argument on this count if is the starting location of your table.
00:42And once that's done, let's click on error alert.
00:46And this section allows you to customize your pop-up window.
00:49So first of all, make sure that your show error alert has been checked on and then give it a title.
00:54And over here, this is the message that pops up on your pop-up window there.
01:02Okay, once you enter those error messages and title, click on OK.
01:07Now, let's start entering numbers here now.
01:10Like that and maybe like that.
01:12And if you were to enter a number which is already existing over here and hit enter,
01:18a pop-up error message will appear indicating that there's a duplicate.
01:21This is a duplicate user ID on this rows of 10.
01:25You can retry, which allows you to modify your user entry value.
01:30And for some reason, if you do it again and click on cancel, it gets rid of whatever you've entered.
01:36This also works on alphabet as well.
01:38Let's say, for example, you type ABCDEF.
01:42And all of a sudden, if you do ABC again and hit enter, it detects duplicate.
Comments