Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default highlighting cells if value is repeated


Hi

I have a column named item number, the user enters a number into thes
cells, I would like a cell to be highlighted red if the same number i
used again as well as the orignal cell. What feature would I use to d
this?

Thanks for any help

--
Skill
-----------------------------------------------------------------------
Skills's Profile: http://www.excelforum.com/member.php...fo&userid=1494
View this thread: http://www.excelforum.com/showthread.php?threadid=26593

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default highlighting cells if value is repeated

conditional formatting, with a formula of

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

--

HTH

RP

"Skills" wrote in message
...

Hi

I have a column named item number, the user enters a number into these
cells, I would like a cell to be highlighted red if the same number is
used again as well as the orignal cell. What feature would I use to do
this?

Thanks for any help.


--
Skills
------------------------------------------------------------------------
Skills's Profile:

http://www.excelforum.com/member.php...o&userid=14946
View this thread: http://www.excelforum.com/showthread...hreadid=265935



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default highlighting cells if value is repeated

use conditional formatting for this

You would use the countif worksheet function to determine if there are
duplicates.

--
Regards,
Tom Ogilvy


"Skills" wrote in message
...

Hi

I have a column named item number, the user enters a number into these
cells, I would like a cell to be highlighted red if the same number is
used again as well as the orignal cell. What feature would I use to do
this?

Thanks for any help.


--
Skills
------------------------------------------------------------------------
Skills's Profile:

http://www.excelforum.com/member.php...o&userid=14946
View this thread: http://www.excelforum.com/showthread...hreadid=265935



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default highlighting cells if value is repeated

Assume your values are all in Col A, select Col A, do Format / Conditional
Formatting / Change 'Cell value' is to 'Formula is' and put in
=AND(A1<"",COUNTIF($A:$A,A1)1) and then hit the format button and choose a red
pattern from the pattern tab.

If data was across Columns A:C then select columns A:C and change formula to:-

=AND(A1<"",COUNTIF($A:$C,A1)1)

If only using a small range then select only that range and ensure that the top
left cell in your range when selected is what goes into the formula where A1
currently is, and the whole range replaces the $A:$C bit.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Skills" wrote in message
...

Hi

I have a column named item number, the user enters a number into these
cells, I would like a cell to be highlighted red if the same number is
used again as well as the orignal cell. What feature would I use to do
this?

Thanks for any help.


--
Skills
------------------------------------------------------------------------
Skills's Profile:
http://www.excelforum.com/member.php...o&userid=14946
View this thread: http://www.excelforum.com/showthread...hreadid=265935



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 29/09/2004


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default highlighting cells if value is repeated

Skills

See Chip Perason's "Highlighting Duplicates" info.

http://www.cpearson.com/excel/duplic...tingDuplicates

See also his "Preventing Duplicates" if that is your goal.

http://www.cpearson.com/excel/NoDupEntry.htm

Gord Dibben Excel MVP

On Sun, 3 Oct 2004 17:28:06 -0500, Skills
wrote:


Hi

I have a column named item number, the user enters a number into these
cells, I would like a cell to be highlighted red if the same number is
used again as well as the orignal cell. What feature would I use to do
this?

Thanks for any help.


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
adding rows after repeated cells James Excel Discussion (Misc queries) 3 September 4th 08 05:36 PM
function for repeated cells Haz Excel Worksheet Functions 7 June 3rd 07 08:56 PM
Printing text in a repeated cell/row that is longer than repeated Valerie Dyet Excel Discussion (Misc queries) 1 February 13th 06 03:27 AM
Delete repeated Cells Mosqui Excel Worksheet Functions 2 September 13th 05 01:31 AM
Highlighting blanks via GO TO SPECIAL is not highlighting blank cells - HELP, I'm totally stuck. Jamie Furlong Excel Discussion (Misc queries) 6 August 28th 05 09:27 PM


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