Conditional Formatting with Wildcard

zacgc5

New Member
Joined
Nov 20, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I need to conditional format a set of cells if the data starts with an A and ends with a 2. I have cells with A02, A12, A22 and so on, and would like these all to get colored.

Any help is appreciated!

Thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Book2
ABC
1a123421
2b1234520
312340
420
5a21
6a1234321
Sheet1
Cell Formulas
RangeFormula
C1:C6C1=COUNTIF(A1,"A*2")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A:AExpression=COUNTIF(A1,"A*2")>0textNO
 
Upvote 0
Select all the cells to format then create a rule using a formula:

Excel Formula:
=ISNUMBER(SEARCH("A*2",A2))
 
Upvote 0

Forum statistics

Threads
1,214,896
Messages
6,122,132
Members
449,066
Latest member
Andyg666

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