View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default Colour code specific name if it appears in a group of names

Hi Wendy

If you want to color the names in ColA if they belong to the subset of names
in ColB; try the below formula

1. Select the cell/Range (say A1:A100). Please note that the cell reference
A1 mentioned in the formula is the active cell in the selection. Active cell
will have a white background even after selection
2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula
=COUNTIF($B$1:$B$10,A1)
4. Click Format ButtonPattern and select your color (say Red)
5. Hit OK

PS: If you are using XL2007 Goto Home tabStylesConditional
FormattingManage rulesNew ruleUse a formula to determine which cells to
format. Enter the formula in the box below.


Col A Col B
Name1 Name4
Name2 Name6
Name3
Name4
Name5
Name6
Name7
Name8
Name9
Name10
Name11
Name12


--
Jacob (MVP - Excel)


"Wendy" wrote:

I want to be able to colour code the name of jo bloggs when his name apprears
in a cell that has many names. I have been able to colour code a range of
cells with a few names but I have a list to 200 names that I need to check
against the same listing of names.

I used conditional format but need to be able to apply this to a large of
names against a set of data that holds many names.


Wendy