ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Stop unique values been entered (https://www.excelbanter.com/excel-worksheet-functions/184064-stop-unique-values-been-entered.html)

Lloyd

Stop unique values been entered
 
Hi

I am want a message box to popup telling me this is a Duplicate record and
delete this row.

Thanks

Max

Stop unique values been entered
 
"LLoyd" wrote:
I am want a message box to popup telling me this is a Duplicate record and
delete this row.


Assume data will be entered in A1 down to say, A200
Select A2:A200 (A2 active)
Click Data Validation Settings tab
Allow: Custom
Formula: =ISERROR(MATCH(A2,$A$1:$A1,0))
Click the Error Alert tab
Enter the "pop up" error msg as desired,
eg (from your subject line): Stop! Only unique values to be entered
Click OK
Test it out ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


All times are GMT +1. The time now is 08:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com