conditional formating with text

S

snakey

I have two columns of data (A:B), and want to highlight values in Col B in
coloured text, where the adjacent cell in Col A contains data entered in
brackets. The data in column A is a mixture of numbers and text and formatted
as 'General' so that a number in brackets does not appear as a negative
value. I've used CF before but can't seem to enter a formula that works.

Any ideas?
 
P

Peo Sjoblom

If there cannot be any other parenthesizes then you can use

In the CF use formula is and


=ISNUMBER(FIND("(",A1))


--


Regards,


Peo Sjoblom
 
J

Jacob Skaria

1. Select the cell/Range (say b1:b10). Please note that the ROW reference 1
mentioned in the formula is the active ROW in the selection. Active cell will
have a white background even after selection

2. From menu Format>Conditional Formatting>
3. For Condition1>Select 'Formula Is' and enter the below formula

=AND(LEFT(A1,1)="(",RIGHT(A1,1)=")")

4. Click Format Button>Pattern and select your color (say Red)
5. Hit OK


If this post helps click Yes
 
S

snakey

Many thanks Jacob - works a treat!

Jacob Skaria said:
1. Select the cell/Range (say b1:b10). Please note that the ROW reference 1
mentioned in the formula is the active ROW in the selection. Active cell will
have a white background even after selection

2. From menu Format>Conditional Formatting>
3. For Condition1>Select 'Formula Is' and enter the below formula

=AND(LEFT(A1,1)="(",RIGHT(A1,1)=")")

4. Click Format Button>Pattern and select your color (say Red)
5. Hit OK


If this post helps click Yes
 
S

snakey

Thanks Peo, this also works, as does Jacobs suggestion - will now decide
which one to use!
 
P

Peo Sjoblom

If there can't be more than one left parenthesis in the cell which I assume
it is the case then I think mine is a tiny bit more robust since it is not
sensitive to an occasional misplaced leading space.

--


Regards,


Peo Sjoblom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top