Conditional formatting as per group pattern

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
Conditional formatting as per group pattern </SPAN></SPAN>

Using Excel 2000</SPAN></SPAN>

Hi,</SPAN></SPAN>

I need conditional formatting as per groups PATTERNS</SPAN></SPAN>
Group-1 pattern "1|1" interior colour RED & font colour white</SPAN></SPAN>
Group-2 pattern "1|X", "1|2", "X|1", "2|1" interior colour GREEN & font colour white</SPAN></SPAN>
Group-3 pattern "X|X", "X|2", "2|X", "2|2" interior colour BLUE & font colour white</SPAN></SPAN>

Result data example</SPAN></SPAN>


Book1
ABCD
1
2
3
4
5Patterns
61|1
71|1
81|X
9X|2
101|1
111|1
121|1
131|2
141|2
15X|X
16X|X
17X|X
18X|1
19X|1
20X|1
212|2
221|1
231|1
242|2
252|2
26X|X
27X|X
28X|X
292|2
302|2
311|1
322|2
332|2
342|1
352|1
362|X
372|X
382|2
392|X
40
41
Sheet1


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

Regards,</SPAN>
Kishan</SPAN>
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
</SPAN>Sorry, I observed that cell C6 & C7 also should be colures Red & white</SPAN></SPAN>
Here is the corrected example


Book1
ABCD
1
2
3
4
5Patterns
61|1
71|1
81|X
9X|2
101|1
111|1
121|1
131|2
141|2
15X|X
16X|X
17X|X
18X|1
19X|1
20X|1
212|2
221|1
231|1
242|2
252|2
26X|X
27X|X
28X|X
292|2
302|2
311|1
322|2
332|2
342|1
352|1
362|X
372|X
382|2
392|X
40
41
Sheet1


Regards,
</SPAN>
Kishan
</SPAN></SPAN>


</SPAN></SPAN>
 
Last edited:
Upvote 0
For the first one use
=C6="1|1"
for the next use
=OR(C6="1|X", C6="1|2",C6="X|1",C6="2|1")
And modify this for the 3rd
 
Upvote 0
For the first one use
=C6="1|1"
for the next use
=OR(C6="1|X", C6="1|2",C6="X|1",C6="2|1")
And modify this for the 3rd
Hi Fluff, it worked as request, 100% Prefect!! </SPAN></SPAN>

Thank you for your help
</SPAN></SPAN>

Have a nice day
</SPAN></SPAN>

Kind Regards,
</SPAN></SPAN>
Kishan :)
</SPAN></SPAN>
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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