Macro to Change Colour According to Four Initials Before

WithaWhy

New Member
Hello there,

In my work my boss has asked me to create a spreadsheet changes colour according to who's initials are entered into the box for each of the five processes in our team. This I have managed using "Coniditional Formatting in Excel 2007".

However now what he also is asking is that when a person's initials are entered five times in a row he wants it to highlight those four cells black to show that this person has worked on the process for four weeks and is not able to work on it again for another four weeks (minimum). But obviously he wants this for each member on the team.

I have been unable to get a coniditional "COUNTIF" formula to work correctly and assume given this is quite an advance task I assume I need a Visual Basic macro and I am not too competent, can anyone provide advice?

Due to being at work I cannot upload a screenshot of how my spreadsheet looks but for instance.

Row A6, A10, A14, A18 and A22 is where Processes headings are and each column from B6, B10, B14, B18 and B22 are the weeks so each member of staff should work something in A6 for four cells in a row and then if someone tries to add their initials again it'll turn the cells black to show this person shouldn't be getting used again. But in any time AFTER the first four weeks doing the process they can do it again. It's basically a rotation I need to get to work.

The formula (for instance) that I had used isn't advance enough to realise that entering something five times or more is fine if they've went over five weeks. The formula I used was:

=COUNTIF(\$B\$22:\$BE\$22, "AW")>4

Can anyone help me with this?

WithaWhy

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try these CFs, for initial colour

=B22="AW"

for over 5 try

=AND(B22="AW", COUNTIF(\$B\$2:\$BE\$22, "AW")>5)

Replies
2
Views
401
Replies
9
Views
285
Replies
3
Views
607
Replies
5
Views
487
Replies
8
Views
951

1,220,009
Messages
6,151,438
Members
451,028
Latest member
greekness1

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.

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

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