Conditional Formatting on Three Dashes / Hyphens

RBusiness

Board Regular
Joined
Sep 18, 2010
Messages
189
Hello,

I'm trying to conditional format three dashes / hyphens "- - -" that are the result of formulas.
I can't seem to get a conditional format to work on this.

Does anyone have any ideas?

RB
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Works fine for me with a CF formula like:
Code:
=A1="- - -"
What exactly does the formula that is returning this value look like?
Is it the formula that explicitly returns the "- - -", or do you have some Custom Formatting on the result going on?
 
Upvote 0
The formula is
Code:
=SUBSTITUTE(SUBSTITUTE(CONCAT(AW230428," (",AF230428-AW230428,") ",AF230428),"101","-"),"(0)","-")

The output is "- - -" (When other data is not available).
 
Upvote 0
If you check the length of one of these instances where the dashes are returned, what does it return?
i.e.
Code:
=LEN(H22)
 
Upvote 0
Note if it is 3, then there are no spaces, and your CF formula should just look something like:
Code:
=H22="---"
 
Upvote 0
There are spaces, and I tried the following but it does not work
Code:
[COLOR=#333333]=H22="- - -"[/COLOR]
 
Upvote 0
Type the formula into any blank cell:
Code:
=H22="- - -"

If it returns FALSE, then the value in cell H22 does NOT exactly match "- - -". Something is different.
If it returns TRUE, then it does equal that, and you are probably not applying the Conditional Formatting correctly.

Note: I see that you are doing some Substitution on some data. Where exactly is this data coming from?
If it comes from the Web or another application, you may have some spaces that aren't normal spaces, but rather special characters (which would be causing the issues).
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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