CF help

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
I'm looking for a Conditional Formatting that,when 2 same number follow each other to be in one color.

then in a different color for 3 numbers for 4 and 5.

Excel Workbook
A
11
25
35
46
53
63
73
84
98
101
111
121
131
145
152
169
179
189
199
209
Sheet1


Than you.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Cannot see a very easy way to do that but see if this is any use.

B1 houses a 0
B2 formula is copied down. (Column B could then be hidden if you want)
Select A2:Axx and apply the CF shown (adjust the $30 in the CF formulas to something below your last likely data)

Excel Workbook
AB
10
211
35
452
561
63
73
833
941
1081
111
121
131
1414
1551
1621
179
189
199
209
2195
22
CF Groups
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =INDEX(B2:B$30,MATCH(TRUE,INDEX(ISNUMBER(B2:B$30),0),0))=5Abc
A22. / Formula is =INDEX(B2:B$30,MATCH(TRUE,INDEX(ISNUMBER(B2:B$30),0),0))=4Abc
A23. / Formula is =INDEX(B2:B$30,MATCH(TRUE,INDEX(ISNUMBER(B2:B$30),0),0))=3Abc
A24. / Formula is =INDEX(B2:B$30,MATCH(TRUE,INDEX(ISNUMBER(B2:B$30),0),0))=2Abc
 
Last edited:
Upvote 0
Hi Peter,

I'm having a problem with adapting your formulas to my actual data.

In the example above, I gave you the numbers starting in A1 ( as an example ) and your formulas works great, but after, I tried to adapted them to my actual data that start in cell : K6 and then from there the formulas where not giving me the right answer, I tried many ways to fix it but no success !!!.

My apology, I should have giving you the right data in the first place.
I hope you still can help me ?

Thank you.
 
Upvote 0
Hi Peter,

The formula need to be change a bit to work for the cell starting in K6, I tried to insert 10 columns and then 5 rows thinking the formula would adapted but it didn't !!!.

I hope you could see this reply ?

Thank you
Serge.
 
Upvote 0
Excel Workbook
KL
50
611
75
852
961
103
113
1233
1341
1481
151
161
171
1814
1951
2021
219
229
239
249
2595
CF Groups
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K61. / Formula is =INDEX(L6:L$40,MATCH(TRUE,INDEX(ISNUMBER(L6:L$40),0),0))=5Abc
K62. / Formula is =INDEX(L6:L$40,MATCH(TRUE,INDEX(ISNUMBER(L6:L$40),0),0))=4Abc
K63. / Formula is =INDEX(L6:L$40,MATCH(TRUE,INDEX(ISNUMBER(L6:L$40),0),0))=3Abc
K64. / Formula is =INDEX(L6:L$40,MATCH(TRUE,INDEX(ISNUMBER(L6:L$40),0),0))=2Abc
 
Upvote 0
You solve my problem, thank you very much Peter.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,877
Members
452,949
Latest member
Dupuhini

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