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.
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
L

Legacy 98055

Guest
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
 

rikrak

Active Member
Joined
Aug 21, 2002
Messages
255
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
 

Jammer

New Member
Joined
Sep 26, 2002
Messages
17
Thank you to everyone who has helped. I am learning Visual Basic (really a beginner) and will try out everyone's helpful suggestions.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,511
Messages
5,596,576
Members
414,079
Latest member
Frills

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
Top