Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Need a warning when a duplicate appears in a column

Hello good people!

Anyone who can help me with following problem:

I need warning to pop up when the user of a sheet is trying to put/write the
same letter, number or word in two different cells in a column.

I must mention that the cells in use are already validated, using a list
validation.

Anyone? :)

Best regards
ELFrodo
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Need a warning when a duplicate appears in a column

You could use Conditional Formatting to color both cells when a duplicate is
entered.

Select A1:A50 and FormatCellsCFFormula is:

=COUNTIF($A$1:$A$50,A1)1

Format to a nice bright red.

To have a warning "pop up" would require VBA code or Data Validation which you
have used already.

If you did use DV you would change the formula to =COUNTIF($A$1:$A$50,A1)=1


Gord Dibben MS Excel MVP


On Sun, 11 Feb 2007 15:41:00 -0800, ElFrodo
wrote:

Hello good people!

Anyone who can help me with following problem:

I need warning to pop up when the user of a sheet is trying to put/write the
same letter, number or word in two different cells in a column.

I must mention that the cells in use are already validated, using a list
validation.

Anyone? :)

Best regards
ELFrodo


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Need a warning when a duplicate appears in a column

Thanks Gord Dibben.

Think it might work:)

Have a good day!
ElFrodo


"Gord Dibben" wrote:

You could use Conditional Formatting to color both cells when a duplicate is
entered.

Select A1:A50 and FormatCellsCFFormula is:

=COUNTIF($A$1:$A$50,A1)1

Format to a nice bright red.

To have a warning "pop up" would require VBA code or Data Validation which you
have used already.

If you did use DV you would change the formula to =COUNTIF($A$1:$A$50,A1)=1


Gord Dibben MS Excel MVP


On Sun, 11 Feb 2007 15:41:00 -0800, ElFrodo
wrote:

Hello good people!

Anyone who can help me with following problem:

I need warning to pop up when the user of a sheet is trying to put/write the
same letter, number or word in two different cells in a column.

I must mention that the cells in use are already validated, using a list
validation.

Anyone? :)

Best regards
ELFrodo



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
Lookup function/sum function Secret Squirrel Excel Discussion (Misc queries) 24 November 21st 06 01:46 AM
How do I combine spreadsheets and documents in one file? Trish Excel Discussion (Misc queries) 3 November 9th 06 09:17 PM
Duplicate Value warning yukon_phil Excel Worksheet Functions 6 July 18th 06 06:09 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


All times are GMT +1. The time now is 03:42 AM.

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

About Us

"It's about Microsoft Excel"