Conditionally format rows of information

magimagpie

New Member
Joined
Oct 30, 2018
Messages
7
Hiya, I'm hoping somebody can help.

I want to use conditional formatting in the end column called all courses complete. I want the end column to be red and say no until all 6 courses have been completed.

Once I put all 6 dates into each course column I want the end column to turn green and say yes.

So both the Sarah's end column would be green and say yes. Both the John's end column would be red and say no.

I'm struggling to track at the moment as not all courses can be completed in one go but they make up one full training session.


[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]COURSE 1[/TD]
[TD]COURSE 2[/TD]
[TD]COURSE 3[/TD]
[TD]COURSE 4[/TD]
[TD]COURSE 5[/TD]
[TD]COURSE 6[/TD]
[TD]ALL COURSES COMPLETE?[/TD]
[/TR]
[TR]
[TD]SARAH SMITH[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JOHN SMITH[/TD]
[TD]01/10/2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SARAH JONES[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD]01/10/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JOHN JONES[/TD]
[TD][/TD]
[TD]01/10/2018[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Re: Help to conditionally format rows of information

Hi there ans welcome to the forum. Assuming your data starts in A1, put this formula in H2 : =IF(COUNT($B2:$G2)=6,"Yes","No") and copy down to all used rows. Then create 2 conditional formatting rules for the H column. 1 rule for cell value equal to Yes with a green fill, and another rule with cell value of No with a fill colour red.
 
Last edited:
Upvote 0
Re: Help to conditionally format rows of information

Fab, that worked thank you!

I have copied the formula down into rows that don't have data yet so that the formatting is there in anticipation of new staff but it is obviously now displaying no as there is no data in these 6 cells.

Is there a way that you know of where the word yes and no will disappear whilst there is no data in that row...hope that makes sense.
 
Upvote 0
Re: Help to conditionally format rows of information

Hello again. Replace that formula with this one: =IF(ISBLANK(A2),"",IF(COUNT($B2:$G2)=6,"Yes","No"))

What it does is look for a name (well actually any non- blank value) in column A, and if its blank sets the cell value to blank, otherwise it does the test as before.

Glad I could help
 
Upvote 0
Re: Help to conditionally format rows of information

Youre welcome. Can you click the thanks and the likes buttons on my last post for me please?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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