Highlight Rows in Different Color Based on Multiple ConditionsHighlight Rows in Different Color Based on Multiple Conditions

Patriot2879

Well-known Member
Joined
Feb 1, 2018
Messages
1,227
Office Version
  1. 2010
Platform
  1. Windows
Hi goodmorning, I hope you can help, I have tried conditional formatting but it doesn’twork in the way I want it to, I hope you can help me with the vba code for it.
I have row Nthat if ‘Yes’ or ‘No’ is highlighted from a list then I want the column to begreen if yes and red if no.
Then in RowB if ‘2 man ladder’, ‘2 man other’ or 2 man no parking’ is shown from the list I want the column tobe a light blue colour.
I hope youcan help me please. There are other rowsand columns I need adding as well, but these are some for examples.

I reallyhope you can help me please with this.

 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Not 100% clear.

Green if "Yes"
Red if "No"

Light Blue if "2 man..."

Select range to highlight, e.g. N1:N100

Conditional Formatting
New Rule
Use a formula to determine...

=N1="Yes"
format as green
=N1="No"
format as red


Go through same procedure again to search for "2 man ", obviously highlighting th range in column B with this different formula

=LEFT(B1,6)="2 man ")
format as light blue

Adjust the row number in both formulas to reflect the start row of the range you want to highlight
 
Upvote 0
hi thank you for your message, I did go through the same procedure in conditional formatting, but it didn't work, I can highlight the 2 man to blue under row B but when I click on yes under row N it doesn't go green
 
Upvote 0
Hi thanksfor your help, I have added the file to drop box please see link below. If you select ‘2 man ladder’ or ‘2 man ladder’or ‘2 man other’ from the list in B2 then what I need is the whole column toturn blue.
But thenwhen the appointment has been booked in and the person selects yes from row N Ithen want the whole column to go green, and ig they choose no to go red.
Hope thismakes sense.


https://www.dropbox.com/s/ls9r4tjxjfsb6cs/Half%20Hourly.xlsm?dl=0




 
Upvote 0
Select A2:N last row & use
=LEFT($B2,5)="2 man" for blue
=$N2="Yes" for green
=$N2="No" for red
 
Upvote 0
No they are formulae to use in conditional formatting.
Select the range A2:N last row > conditional formatting > new rule > use a formula
Then enter the first formula & select your format.
Repeat the above for the other two formulae
 
Upvote 0
Hi I did try this before but it didn't work, it doesn't work when 2 man is in B2 and I then click on yes it doesn't work with both options open.
 
Upvote 0
It does work if applied correctly. Did you follow my instruction exactly?
Also you should know by now that phrases such as "didn't work" & "doesn't work" are less than helpful.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,981
Members
448,538
Latest member
alex78

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