Conditional Formatting of rows > 4 conditions

Jammer

New Member
Joined
Sep 26, 2002
Messages
17
The conditional formatting feature does not allow more than 3 sets of conditions and I want to format greater than 3. I want to make an entire row a specific color, when I make any one cell in that row a certain condition. For example, if any cell equals "apple" make that row red. If any cell equals "pear" make that row blue. There are more than 3 conditions. You may need to use visual basic programming. How can you do this? Thanks for helping.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi Jammer. I can almost guarantee that you will get a great example if you will post some details. Which cells, when what = what. Ect...
Tom
 
Upvote 0
On 2002-10-01 15:14, dennisdjones wrote:
PS: REMEMBER :) CaSe sENsitIve

colors

APPLE = 3 (red)
BANANA= 6 (yellow)
PEAR = 4 (green)

Hi Dennis,

Are you refering to this code you got from Mudface?
If UCase(Target) = "e" Then Target.EntireRow.Interior.ColorIndex = 3
If UCase(Target) = "E" Then Target.EntireRow.Interior.ColorIndex = 3

If so, i don't understand your message "PS: REMEMBER :) CaSe sENsitIve". Can you explain it to me?

I think 1 line of code will do:
If UCase(Target) = "E" Then Target.EntireRow.Interior.ColorIndex = 3
 
Upvote 0
Thank you to everyone who has helped. I am learning Visual Basic (really a beginner) and will try out everyone's helpful suggestions.
 
Upvote 0

Forum statistics

Threads
1,217,505
Messages
6,137,026
Members
450,040
Latest member
vincentywh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top