Highlighting duplicate consecutive cells by row

Dutchralian

New Member
Joined
Oct 22, 2023
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

I need help creating a formula to highlight 3 or more consecutive duplicate cells.
In the belwo example, row 6 should read false just like that in row 7. Rows 4, 8 and 10 are correct.

1697970789262.png

This is my formula so far
=COUNTIF(C6:I6;$J$1)>=3+AND(C6:I6;C6<>D6;D6<>E6;E6<>F6;F6<>G6;G6<>H6;H6<>I6)

Can you please help make the formula correct?

Thanks.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Something like
Excel Formula:
=SUM(IF(FREQUENCY(IF(A1:E1="x",COLUMN(A1:E1)),IF(A1:E1<>"x",COLUMN(A1:E1)))=3,1))
Adapt ranges as required
 
Upvote 0
In J4 copied down.

=AND(SUM(1*(FREQUENCY(IF($C4:$I4="x",COLUMN($C4:$I4),""),IF($C4:$I4<>"x",COLUMN($C4:$I4),""))>0))=1,COUNTIF($C4:$I4,"x")>1)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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