Highlight repeat words if within the next 2 or 3 consecutive rows and ignore blank cells?

thomasoates

New Member
Joined
Sep 6, 2018
Messages
2
https://ibb.co/j4ZGeeHi there. I've searched on this forum and others for thisone but I can't seem to find it. I am by no means an expert with Excel so Iwould really appreciate some help.

I am responsible for our rota at work. I have recently changed it to Excel fromWord to try and help me. It’s quite a bespoke and complicated rota. I won’t gointo it too much but will show you what I mean by it.

Days of the month on the left so each row is a day.
AM Court, Strad., Call, Co-Ord are the shift types wehave.
The main entries are staff initials (TMO, ALL, RLW, MPHetc). On the right hand side, (outside of the rota), are people’sunavailability for that day. So one rule I already have is to highlight if thesame initial appears twice on the row (i.e they are unavailable and shouldn’tbe on)
What I now want to do is create a rule to highlight if Iput the same person on any type of shift within one or two days (rows) of eachother. So if they are on a Monday, I want it to highlight if I put the same initialsin either of the two days/rows below. Basically there should be a two day spacebefore someone goes on again. Obviously it needs to work above and below rowsbut that should happen anyway, right?
So the cells that I want this to apply to only the cellsthat deal with shifts, basically columns B though to I. It doesn’t matter ifthere are consecutive in J onwards, indeed there would usually be.
I have tried a few ways but I am not getting it. One thingit needs to do is ignore blank cells, because they clearly do repeat and areirrelevant.
I hope this makes sense and appreciate any help.
Thank you




 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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