Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Conditional Formatting

Hello!

If you could help, I'd truely appreciate it.
A B C D E F
1 P P P
2
3
4

I want to Conditionally Format all cells that if there is an apprearance of "P" more than twice in Row 1, it will turn the cells yellow.

Please Help.
Thank You in Advance
CdotWin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Conditional Formatting

Hi CDotWin,

Assuming you want to do this in VBA, try:

Sub Tester()
Dim Rng As Range

Set Rng = Range("A1:D10") '<<<<<<<<<<<<<<<< CHANGE!
With Rng
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=COUNTIF($1:$1,""=p"")2"
.FormatConditions(1).Interior.ColorIndex = 19
End With
End Sub

Change the range to suit your requirements.


If you want to do this manually, try:

Select the cells that you want potentially highlighted.,
Format | Conditional Formatting... | Condition1 | Formula Is |
=COUNTIF($1:$1,"=P")3 | Format ... | Patterns ! Select your color | OK


---
Regards,
Norman


"CDotWin" wrote in message
...
Hello!

If you could help, I'd truely appreciate it.
A B C D E F
1 P P P
2
3
4

I want to Conditionally Format all cells that if there is an apprearance

of "P" more than twice in Row 1, it will turn the cells yellow.

Please Help.
Thank You in Advance
CdotWin



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
How can I convert conditional formatting into explicit formatting? Patrick Harris Excel Discussion (Misc queries) 0 April 9th 09 12:00 AM
Formatting Conditional Formatting Icon Sets The Rook[_2_] Excel Discussion (Misc queries) 3 March 7th 09 08:48 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


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

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"