Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Preventing double entry formula

I am creating a phone list with telephone number for our employees to use
when they are calling our clients. I want to prevent a phone number being
entered on the call list multiple times. Is there a way that I can enter a
formula that will give me either a stop or warning message when a phone
number is already on my spread sheet? Please Help.
--
Yoli
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Preventing double entry formula

The typical solution is to use Countif. If your phone numbers are in column
A, use:
=Countif(A:A,a1)
And copy down.

A result greater than 1 indicates a duplicated number.

Regards,
Fred


"Yoli" wrote in message
...
I am creating a phone list with telephone number for our employees to use
when they are calling our clients. I want to prevent a phone number being
entered on the call list multiple times. Is there a way that I can enter
a
formula that will give me either a stop or warning message when a phone
number is already on my spread sheet? Please Help.
--
Yoli


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Preventing double entry formula

Right click sheet tabview codeinsert thischange column 1 to suit

Private Sub Worksheet_Change _
(ByVal Target As Range)
If Target.Column < 1 Then Exit Sub
If Application.CountIf(Columns(1), _
Target) 1 Then MsgBox "Duplicate"
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Yoli" wrote in message
...
I am creating a phone list with telephone number for our employees to use
when they are calling our clients. I want to prevent a phone number being
entered on the call list multiple times. Is there a way that I can enter
a
formula that will give me either a stop or warning message when a phone
number is already on my spread sheet? Please Help.
--
Yoli


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Eva Eva is offline
external usenet poster
 
Posts: 197
Default Preventing double entry formula

To prevent double entry formula please use Data Validation feature
Select the range then:

Data / Validation / Settings / Allow / Custom / Formula
=SUMPRODUCT(--(EXACT(A1,$A$1:$A$250)))=1

then to to Error Alert and enter the message "Double entry"
Click yes if helped
--
Greatly appreciated
Eva


"Yoli" wrote:

I am creating a phone list with telephone number for our employees to use
when they are calling our clients. I want to prevent a phone number being
entered on the call list multiple times. Is there a way that I can enter a
formula that will give me either a stop or warning message when a phone
number is already on my spread sheet? Please Help.
--
Yoli

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Preventing double entry formula

Hi,

Assume that phone numbers are entered in range A3:A50. Click on cell A4 and
go to Data Validation Allow Custom Formula and enter

=countif(A$3:A4,A4)=1

Copy this validation down by Copy Edit Paste Special Validation

Now if any duplicate number is entered, a pop up will appear.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Yoli" wrote in message
...
I am creating a phone list with telephone number for our employees to use
when they are calling our clients. I want to prevent a phone number being
entered on the call list multiple times. Is there a way that I can enter
a
formula that will give me either a stop or warning message when a phone
number is already on my spread sheet? Please Help.
--
Yoli


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Double Entry table Mnilo Excel Worksheet Functions 3 July 9th 06 06:30 PM
Preventing manual entry in dropdown list ... possible? Maurice Excel Discussion (Misc queries) 4 March 21st 06 06:56 PM
FIND - Double entry Danny Excel Worksheet Functions 2 September 20th 05 08:05 PM
Double entry Rob graham Excel Discussion (Misc queries) 6 June 21st 05 08:05 AM
Double entry lookup Al Eaton Excel Worksheet Functions 2 December 13th 04 03:25 AM


All times are GMT +1. The time now is 01:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"