conditional formatting formula for if a cell contains some letters as part of its entry

TAKLAM

New Member
Joined
May 18, 2024
Messages
2
Office Version
  1. 2016
Platform
  1. MacOS
Hello.
I want to format rows in a SS according to whether a cell in column "I" (and ONLY the cell in column "I") contains "CC" or not.
Column "I" either has entries that are along the lines of "CC10101" or "10101"- so either just a number or a number preceded by CC.
So I only want the row to be conditionally formatted if the cell in column "I" of that row contains CC as part of its entry.
I have tried:
=ISNUMBER(SEARCH("CC",$I2)>1
=ISNUMBER(SEARCH("CC",","&$I2&","))
and some others in a similar vein but they seem to sporadically change the formatting often even if the "I" cell does not contain a "CC" so I am clearly getting it wrong.
Any help would be much appreciated please.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
@TAKLAM Welcome.

Does this help?
Testing Formula Update.xlsm
GHIJ
212345CC876
3CC1234
4CC999
5CC123412234
6CC101010
7
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
2:8Expression=LEFT($I2,2)="CC"textNO
 
Upvote 0

Forum statistics

Threads
1,225,759
Messages
6,186,863
Members
453,380
Latest member
ShaeJ73

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