English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

for example in A1 data entered is "XXXXXXXXX" if in A2 data entered is "XXXXXXXXX" it should data base has to reject the data

2006-12-12 22:49:46 · 6 answers · asked by Anonymous in Computers & Internet Software

6 answers

http://www.ozgrid.com/Excel/Formulas.htm#VALIDATION

2006-12-13 01:33:20 · answer #1 · answered by O Caçador 6 · 2 0

it must be a macro
asuming you know excel vba,
from the Visual Basic editor,
double click on the database sheet, in the right hand side white panel
copy and paste the code below

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count <> 1 Then Exit Sub
If Target = "" Then Exit Sub
With Cells.SpecialCells( xlCellTypeConstants)
Set c = .Find(Target, LookIn:=xlValues, LookAt:=xlWhole)
If Not c Is Nothing Then
Do
If c.Address <> Target.Address Then
MsgBox "value already in database"
With Target
.ClearContents
.Select
End With
Exit Sub
End If
Set c = .FindNext(c)
Loop While c.Address <> Target.Address
End If
End With
End Sub

save it and close it (red cross) and try to type "xxxx" in two different cells (whichever one you want, it doesn't matter)

for more details feel free to send me an email through Y Q/A
----------
I debugged a small problem

2006-12-12 23:53:28 · answer #2 · answered by Anonymous · 0 0

Use a Data Validation dropdown:
http://www.officearticles.com/excel/drop-down_using_data_validation_in_microsoft_excel.htm

2006-12-16 14:38:00 · answer #3 · answered by Secret Agent of God (BWR) 7 · 0 0

do you % 2 sheets? If no longer: Insert a column for telephone numbers to Sheet A. be sure the column headers are the comparable on the two sheets, then replica all the information to the backside of the different. style by ability of company. verify information then delete duplicates.

2016-12-11 08:14:51 · answer #4 · answered by Anonymous · 0 0

u might consider keying in everything first, then sort them to check for repeated ones.

2006-12-12 23:24:30 · answer #5 · answered by Anonymous · 0 0

no

2006-12-12 22:52:24 · answer #6 · answered by Anonymous · 0 1

fedest.com, questions and answers