Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 76
Default Highlighting Data IF...

I had an answer to a query, and then added a 2nd question to it, but
it probably got confusing so i thought i could start again - this also
might help other people search for this aswell...

How do I highlight a row IF..
Using Cell A1 as an example..
a) There are duplicates of A1 in A:A (which are in order)
b) There is an "X" in column C within this range of Duplicates.
... I then want all the Rows with Duplicates in to be highlighted.

IE.

A B C
1 b
2 b
3 b X
4 b
5 c
6 c
7 c
8 d
9 d X
10 d

Rows 1-4 will be higlighted.. because they are duplicated in A, and
there is an X within that range on C..
Rows 5, 6 and 7 wont be highlighed.. because although they are
duplicated, there is no X..
Rows 8, 9 and 10 will be highlight for the same reason as 1-4.

If you can help that would be great.
xxxxxxxxxxxxx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Highlighting Data IF...

NPell,

Select A1 to CXXXX, then choose Format / Conditional Formatting, "Formula Is" and use the formula

=SUMPRODUCT(($A$1:$A$XXXX=$A1)*($C$1:$C$XXXX="X")) <0

Of course, replace the XXXX with the row number of the last filled row. Then choose your fill
format to be whatever color you want....

HTH,
Bernie
MS Excel MVP


"NPell" wrote in message
...
I had an answer to a query, and then added a 2nd question to it, but
it probably got confusing so i thought i could start again - this also
might help other people search for this aswell...

How do I highlight a row IF..
Using Cell A1 as an example..
a) There are duplicates of A1 in A:A (which are in order)
b) There is an "X" in column C within this range of Duplicates.
... I then want all the Rows with Duplicates in to be highlighted.

IE.

A B C
1 b
2 b
3 b X
4 b
5 c
6 c
7 c
8 d
9 d X
10 d

Rows 1-4 will be higlighted.. because they are duplicated in A, and
there is an X within that range on C..
Rows 5, 6 and 7 wont be highlighed.. because although they are
duplicated, there is no X..
Rows 8, 9 and 10 will be highlight for the same reason as 1-4.

If you can help that would be great.
xxxxxxxxxxxxx



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 76
Default Highlighting Data IF...

On Apr 4, 7:18*pm, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
NPell,

Select A1 to CXXXX, then choose Format / Conditional Formatting, "Formula Is" and use the formula

=SUMPRODUCT(($A$1:$A$XXXX=$A1)*($C$1:$C$XXXX="X")) <0

Of course, replace the XXXX with the row number of the last filled row. *Then choose your fill
format to be whatever color you want....

HTH,
Bernie
MS Excel MVP

"NPell" wrote in message

...



I had an answer to a query, and then added a 2nd question to it, but
it probably got confusing so i thought i could start again - this also
might help other people search for this aswell...


How do I highlight a row IF..
Using Cell A1 as an example..
a) There are duplicates of A1 in A:A (which are in order)
b) There is an "X" in column C within this range of Duplicates.
... I then want all the Rows with Duplicates in to be highlighted.


IE.


* *A * B * C
1 * b
2 * b
3 * b * * * * X
4 * b
5 * c
6 * c
7 * c
8 * d
9 * d * * * * X
10 d


Rows 1-4 will be higlighted.. because they are duplicated in A, and
there is an X within that range on C..
Rows 5, 6 and 7 wont be highlighed.. because although they are
duplicated, there is no X..
Rows 8, 9 and 10 will be highlight *for the same reason as 1-4.


If you can help that would be great.
xxxxxxxxxxxxx- Hide quoted text -


- Show quoted text -


Thanks for your help, this is brilliant!!
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
Sorting data by highlighting? Jonathan Excel Discussion (Misc queries) 1 January 24th 08 03:23 PM
HIGHLIGHTING A COLUMN OF DATA F. Lawrence Kulchar Excel Discussion (Misc queries) 3 October 28th 06 04:49 PM
Help with Highlighting Data John1950 Excel Discussion (Misc queries) 3 March 15th 06 09:00 PM
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
Comparing data in two columns and highlighting the data David Kinsley Excel Worksheet Functions 6 January 4th 05 06:01 PM


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