How to highlight 5 consecutive cells with a word of "Need attention"

Lolipop

New Member
Joined
May 24, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi all,
I want to highlight cells when the row has 5 consecutive (or more) "Need attention". I only want to highlight cells with a word of "Need attention", and only if there are at least 5 consecutive word of "Need attention". The cell values are from a formula.


1690108619450.png


Thank you in advance.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Give this a try

23 07 23.xlsm
D
1Signal
2
3Need attention
4
5
6Need attention
7Need attention
8Need attention
9Need attention
10Need attention
11
12Need attention
13Need attention
14
15Need attention
16Need attention
17Need attention
18Need attention
19Need attention
20Need attention
21Need attention
22
CF 5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D22Expression=AGGREGATE(15,6,ROW(D2:D$1000)/(D2:D$1000<>"Need attention"),1)-AGGREGATE(14,6,ROW(D$1:D2)/(D$1:D2<>"Need attention"),1)-1>=5textNO
 
Upvote 1
Solution

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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