Color coding cells that contain some substring

srkj

New Member
Joined
Sep 27, 2011
Messages
13
Hello:

I have some data shown below in a spreadsheet.

[TABLE="width: 94"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD] g[/TD]
[TD] z[/TD]
[TD] g[/TD]
[TD] s[/TD]
[/TR]
[TR]
[TD] r[/TD]
[TD] b*[/TD]
[TD] h[/TD]
[TD] c[/TD]
[/TR]
[TR]
[TD] n[/TD]
[TD] u*[/TD]
[TD] e[/TD]
[TD] r
[/TD]
[/TR]
</tbody>[/TABLE]

Each string (g, z, u*, b*...) is in its own cell.

I am trying to highlight the cells that has *.

I tried Conditional Formatting --> Highlight Cells Rules..-->Text That Contains --> *

But it appears that this rule reads the whole string and doesn't recognize the substring.

I am wondering whether there is anyway to achieve the highlighting based on the substrings in a value

thank you
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
OK. It appears that I need to use "Conditional Formatting Based on the Formula"

Conditional Formatting --> New Rule--> New Formatting Rule --> Use a formula to determine which cells to format.

The formula is -- highlight all the cells which contain * at the end of the string.

=RIGHT(CELL_REFERENCE,1)="*"

Any tips on how to reference all the cells in the active sheet generically?
 
Upvote 0
OK Folks. This issue is resolved. I need to use the following in the formula to highlight those cells that contain *

=RIGHT(A1:T20,1)="*"
 
Upvote 0
OK Folks. This issue is resolved. I need to use the following in the formula to highlight those cells that contain *

=RIGHT(A1:T20,1)="*"
 
Upvote 0

Forum statistics

Threads
1,226,693
Messages
6,192,463
Members
453,725
Latest member
cvsdatreas

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