Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Alice
 
Posts: n/a
Default highlighting duplicate values

For example,

A1 = 5
A2 = 6
A3 = 7
A4 = 5
A5 = 6

How can you highlight/change the cell colour of all duplicate
occurences of A1 in the row, in this case A4?

And when changed is it possible to keep the highlighted colour, in A4,
even if A1 is then changed to 6? and when it changes to again
highlight/change the colour of all cells in the column that match its
new number - in this case A2 and A5?

-----
i'm completely new to spreadsheets and feel a bit in over my head.

thanks,

Alice

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default highlighting duplicate values

One way, via conditional formatting

Select A2:A5
(ensure A2 is active)

Click Format Conditional Formatting

Under Condition 1, make the settings as:
Formula is: =AND(ISNUMBER(MATCH($A$1,A2,0)),$A$1<"")
Click Format button Patterns tab Green? OK

Click OK at the main dialog

The above will trigger the desired cond formats within A2:A5,
depending on the input in A1
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Alice" wrote in message
oups.com...
For example,

A1 = 5
A2 = 6
A3 = 7
A4 = 5
A5 = 6

How can you highlight/change the cell colour of all duplicate
occurences of A1 in the row, in this case A4?

And when changed is it possible to keep the highlighted colour, in A4,
even if A1 is then changed to 6? and when it changes to again
highlight/change the colour of all cells in the column that match its
new number - in this case A2 and A5?

-----
i'm completely new to spreadsheets and feel a bit in over my head.

thanks,

Alice



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default highlighting duplicate values

Line:
Formula is: =AND(ISNUMBER(MATCH($A$1,A2,0)),$A$1<"")


should read as:
Formula is: =AND($A$1=A2,$A$1<"")

(the former works as well but it was overkill, sorry)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
Return Range of Numerical Values in Single Column based on Frequency Percentage Sam via OfficeKB.com Excel Worksheet Functions 9 October 28th 05 11:01 PM
View of x-axis values AhmtDY Charts and Charting in Excel 2 October 18th 05 06:18 PM
DUPLICATE VALUES Saintsman Excel Worksheet Functions 2 October 12th 05 05:21 PM
How can I break values apart that are in the same cell? Phil Excel Worksheet Functions 3 October 4th 05 03:41 PM
Duplicate values TUNGANA KURMA RAJU Excel Discussion (Misc queries) 4 October 1st 05 01:07 PM


All times are GMT +1. The time now is 08:18 PM.

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"