Why is do Conditional formatting with rule of format only cells that contain "~"

nsa1

New Member
Joined
Jul 11, 2023
Messages
39
Office Version
  1. 2010
Hello,

Add a cell with xyxyxy~. Then add a conditional formatting rule that says Format only cells that contains ~ by...
In the Edit the Rule Description:
Format only cells with "Specific Text", "Containing", ~
Format to have that Cell Filled in with some color
Then OK and Apply...

This above rule does not apply color to xyxyxy~.

If I edit above rule and instead of "Containing" I change it to "ending with" ...then the cell gets filled with color...

WHY?

NA
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi @nsa1 and welcome to MrExcel board.

Excel uses ~ to perform specific wildcard searches, so in this case, you must indicate it with double ~

Dante Amor
A
2xyxyxy~
3xyxyxy
4xyx~xxx
Hoja1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A4Cell Valuecontains "~~"textNO



;)
 
Upvote 0
Hi Dante,

Thanks but that didn't work with conditional formatting...

See below screenshots...

thanks,

NA
 

Attachments

  • Contain excel.png
    Contain excel.png
    68.9 KB · Views: 11
  • Contain.png
    Contain.png
    42.2 KB · Views: 11
  • Contain1 Excel.png
    Contain1 Excel.png
    68.7 KB · Views: 12
  • Contain1.png
    Contain1.png
    42.3 KB · Views: 9
  • ending with excel.png
    ending with excel.png
    69 KB · Views: 12
  • ending with.png
    ending with.png
    43.4 KB · Views: 13
Upvote 0
You shouldn't have quotes around the tildes
 
Upvote 0

Forum statistics

Threads
1,215,232
Messages
6,123,761
Members
449,120
Latest member
Aa2

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