Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Duplicates
Hello!
I am looking for a formula that prevents the entry of duplicates. Not insert a value in cell B1 when the value already exists in column A. Any idea? Thanks |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Duplicates
Right click sheet tabcopy paste this. Now when you put something in cell b1
it will be added to the end of column A UNLESS it already exists in column A Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address < Range("b1").Address Then Exit Sub If Not Columns(1).Find(Target) Is Nothing Then Exit Sub Cells(Cells(Rows.Count, 1).End(xlUp).Row + 1, 1) = Target End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Dias" wrote in message ... Hello! I am looking for a formula that prevents the entry of duplicates. Not insert a value in cell B1 when the value already exists in column A. Any idea? Thanks |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Duplicates
You could select B1
or select col B (if you want it applied similarly for the entire col) then Click Data Validation Allow Custom Formula: =COUNTIF(A:A,B1)<1 Click Ok Test it out -- Max Singapore http://savefile.com/projects/236895 Downloads:23,000 Files:370 Subscribers:66 xdemechanik --- "Dias" wrote in message ... Hello! I am looking for a formula that prevents the entry of duplicates. Not insert a value in cell B1 when the value already exists in column A. Any idea? Thanks |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Duplicates
Hi,
Choose Data, Validation, Custom and enter the following formula =AND(B1<A:A) -- If this helps, please click the Yes button Cheers, Shane Devenshire "Dias" wrote: Hello! I am looking for a formula that prevents the entry of duplicates. Not insert a value in cell B1 when the value already exists in column A. Any idea? Thanks |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Duplicates
Hi Shane
its doesn't seem to work when I test it -- HTH Pls provide your feedback by clicking the YES button below if this posting is helpful This will help others to search the results in the archive better cheers, francis "Shane Devenshire" wrote in message ... Hi, Choose Data, Validation, Custom and enter the following formula =AND(B1<A:A) -- If this helps, please click the Yes button Cheers, Shane Devenshire "Dias" wrote: Hello! I am looking for a formula that prevents the entry of duplicates. Not insert a value in cell B1 when the value already exists in column A. Any idea? Thanks |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Duplicates
Hi!
Thanks everyone, the simple formula from Max, works perfect for me. Regards Dias Max escreveu: You could select B1 or select col B (if you want it applied similarly for the entire col) then Click Data Validation Allow Custom Formula: =COUNTIF(A:A,B1)<1 Click Ok Test it out |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Duplicates
Glad it worked. You're welcome.
-- Max Singapore http://savefile.com/projects/236895 Downloads:23,000 Files:370 Subscribers:66 xdemechanik --- "Dias" wrote in message ... Thanks everyone, the simple formula from Max, works perfect for me. Regards Dias |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Looking up duplicates | Excel Discussion (Misc queries) | |||
Condensing a list with duplicates to a list with non-duplicates | Excel Worksheet Functions | |||
Duplicates in excel that aren't 100% DUPLICATES ... | Excel Discussion (Misc queries) | |||
duplicates | Excel Discussion (Misc queries) | |||
Duplicates | Excel Discussion (Misc queries) |