Special conditional formatting; highlight the series

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
Using Excel 2000</SPAN></SPAN>

Hi,</SPAN></SPAN>

I am looking special conditional formatting; perhaps it would not be possible doing by the formula. Need your help with a VBA solution </SPAN></SPAN>

My series is made of three characters 1, X and 2</SPAN></SPAN>

I want to highlight every series in 2 different colours as shown in the given example below</SPAN></SPAN>

Here is a example of row 6, and will be followed the same method for all the rest rows bellows, Series start with "1" and will end with "2"</SPAN></SPAN>

C6 = X its alone series end, because D6 has "1" so highlight C6 with Green</SPAN></SPAN>
D6 = 1 and E6 = 2 series end, because F6 has "1" so highlight D6:E6 with Red</SPAN></SPAN>
F6:G6 Series with colour Green</SPAN></SPAN>
H6:I6 series with colour Red</SPAN></SPAN>
J6:L6 series with colour Green</SPAN></SPAN>
And last M6:P6 with colour Red </SPAN></SPAN>

Result data example</SPAN></SPAN>


Book1
ABCDEFGHIJKLMNOPQ
1
2
3
4
5P1P2P3P4P5P6P7P8P9P10P11P12P13P14
6X1212XX1121X22
71X2221XX22XX11
81X11XX22XX11XX
91X1221X11X1221
10X1X1X11X111XX1
11XXX1111X1X212X
122X1112XXX11121
13X1XX1111111X11
14211X211X2X222X
15X112X12111111X
161212X21X12X111
172XX1221112111X
18111121112121XX
191212111221211X
20
21
Sheet2


Thank you in advance</SPAN></SPAN>

Regards,</SPAN></SPAN>
Kishan</SPAN></SPAN>
 
Last edited:
Re: Need help with a special conditional formatting; highlight the series

PS, I only now see that you wanted to evaluate pairs of data XX X1 11 X2 12 22, not 1111XXX2222 XXX as per my assumption. Good practice.
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,215,391
Messages
6,124,674
Members
449,179
Latest member
fcarfagna

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