#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel 2003

Looking to return an error message in a column of data if the same value has
been typed in previously

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default Excel 2003

Assume that do you want to restrict the duplicate value in A to C Column then
use this formula in Validation.

Place the cursor in A1 cell and press Cntrl+Spacebar which will select the A
Column and hold the shift key and extend the selection up to C Column by
using right arrow (i.e. A to C)

Note that the Active cell should be A1 since the below formula refers the A1
cell. Active cell will have the white background after selection also.

Select DataValidationSettingsAllow(select) CustomFormula (paste
the below formula)

=COUNTIF(A:C,A1)<2

Select DataValidationError AlertTitle type €śThis No is already picked€ť
In Error Message type €śTrying to create Duplicate Record€ť or your desired
Error Message.

Give ok.

Change the cell reference A:C & A1 to your desired cell, if required

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"Robert McPherson" wrote:

Looking to return an error message in a column of data if the same value has
been typed in previously

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Excel 2003

Using data validation you can; but only manual entries/dropdown entries will
be validated

--Select Column B
--Select menu DataValidation
--Select Custom from the 'Allow' dropdown and enter the below formula
=COUNTIF(B:B,B1)=1

--From the Error alert tab enter the message you want to be displayed
--Click OK and try.

If this post helps click Yes
---------------
Jacob Skaria


"Robert McPherson" wrote:

Looking to return an error message in a column of data if the same value has
been typed in previously

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
importing/linking data from an Access 2003 Query to an Excel 2003 PerryK Excel Discussion (Misc queries) 2 August 24th 09 07:06 PM
Convert Excel 2003 spreadsheet into Outlook Contacts table 2003 Stuart[_4_] Excel Discussion (Misc queries) 2 October 6th 08 05:07 PM
import Excel 2003 file into Outlook 2003 - NO NAMED RANGES?? lewisma9 Excel Discussion (Misc queries) 0 February 27th 07 12:23 AM
Copying Excel 2003 Selection into Outlook 2003 HTML E-Mail Message [email protected] Excel Discussion (Misc queries) 0 July 10th 06 03:07 PM
Excel 2003 Database Driver Visual FoxPro 7 on Server 2003. Cindy Winegarden Excel Discussion (Misc queries) 0 November 28th 04 12:07 AM


All times are GMT +1. The time now is 03:21 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"