Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Check if a value is found twice in a range

Hello,
I have to check if a value is found twice in a range and display an error if
Yes.
Lets suppose a range B3:B29 composed of several values not sorted (for ex :
250,412,359,1,6,8,45,18,412).
As 412 is found already in second position (and last one) I would like to
change color of Cell B30 from nothing to Red. Of course could be 18 which
appearing twice or more or any other number...

Thanks for you help and creativity !!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Check if a value is found twice in a range (with no macros !)

I forgot to say that macros are not welcome... cause of security rules.
Sorry !

Hello,
I have to check if a value is found twice in a range and display an error if
Yes.
Lets suppose a range B3:B29 composed of several values not sorted (for ex :
250,412,359,1,6,8,45,18,412).
As 412 is found already in second position (and last one) I would like to
change color of Cell B30 from nothing to Red. Of course could be 18 which
appearing twice or more or any other number...

Thanks for you help and creativity !!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Check if a value is found twice in a range (with no macros !)

If there is data in rows a1:a10, put this formula into conditional
formatting for cell a1 then use the format painter to copy the conditional
formatting throughout the range of data. (Formatconditional formatting )

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



"François" wrote in message
...
I forgot to say that macros are not welcome... cause of security rules.
Sorry !

Hello,
I have to check if a value is found twice in a range and display an error

if
Yes.
Lets suppose a range B3:B29 composed of several values not sorted (for ex

:
250,412,359,1,6,8,45,18,412).
As 412 is found already in second position (and last one) I would like to
change color of Cell B30 from nothing to Red. Of course could be 18 which
appearing twice or more or any other number...

Thanks for you help and creativity !!!



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Check if a value is found twice in a range

On Fri, 13 May 2005 01:12:03 -0700, François
wrote:

Hello,
I have to check if a value is found twice in a range and display an error if
Yes.
Lets suppose a range B3:B29 composed of several values not sorted (for ex :
250,412,359,1,6,8,45,18,412).
As 412 is found already in second position (and last one) I would like to
change color of Cell B30 from nothing to Red. Of course could be 18 which
appearing twice or more or any other number...

Thanks for you help and creativity !!!


In Cell B3:

Format/Conditional Formatting/Formula Is: =COUNTIF($B$3:B3,B3)1
Then format to taste.

Then, using the Format Painter, copy that format down as far as is necessary.

(Alternatively, select B3:Bn before typing in the above formula).


--ron
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
XL 2007 *.xlsx could not be found. Check ... Sequential ERROR screens [email protected] Excel Discussion (Misc queries) 2 April 14th 07 06:52 PM
Sum vales found with a date range. Will Excel Discussion (Misc queries) 7 April 9th 07 10:52 PM
Validation error: Says range not found and it is there? JMike Excel Discussion (Misc queries) 1 February 11th 05 06:35 PM
lookup in a range then vlookup from the found value onwards Jeanette Excel Programming 1 December 16th 04 07:17 AM
Range Name Found?? Michael Kintner Excel Programming 2 January 6th 04 06:25 PM


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