conditional formating

kerm007

Active Member
Joined
Mar 16, 2019
Messages
266
Office Version
  1. 365
Platform
  1. Windows
Hello how can i do conditional formatting when the same character appear 4 time in a row in let say row B3 to b24
i tries different thing but what i found is only for a column
Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
i want to highlight the 4 cell when the same character appear 4 time in a row
let say in row B3 to B24 i have a sequence of 3 time a X i want nothing but cell b7 to b10 the x appear 4 time i want the cell B10 to be colored in red
basically i have a league and i want each time a player came i put an x to the presence and at the 4 time they came in a row i will give somthing
Regards
 
Upvote 0
same character appear 4 time in a row
Best practice would be to use a helper column which counts the continuous repetition.

Check this -

Book2
BC
2DataHelper
3X1
4X2
5X3
6O1
7O1
8O1
9X1
10X2
11X3
12X4
13O1
14O1
15O1
16X1
17X2
18X3
19X4
Sheet1
Cell Formulas
RangeFormula
C3:C19C3=IF(AND(B3="X",B3=B2),C2+1,1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:C19Expression=OR(C6=4,C3=4)textNO
 
Upvote 0
ok but in column B i have all the players name and starting in C2 i have dates i put x on column like this

1694272690960.png


is it fesible ?
Thanks '
 
Upvote 0
I would suggest you better share a sample data via XL2BB with actual scenario to understand and find a workable solution.
 
Upvote 0
You need to select data area and copy as mini sheet to post here...

The data is not visible in what you posted above.
 
Upvote 0

Forum statistics

Threads
1,223,757
Messages
6,174,327
Members
452,555
Latest member
colc007

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