A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

conditional formating with text



 
 
Thread Tools Display Modes
  #1  
Old November 16th, 2009, 04:45 PM posted to microsoft.public.excel.misc
snakey
external usenet poster
 
Posts: 4
Default conditional formating with text

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?



  #2  
Old November 16th, 2009, 05:00 PM posted to microsoft.public.excel.misc
Peo Sjoblom[_3_]
external usenet poster
 
Posts: 137
Default conditional formating with text

If there cannot be any other parenthesizes then you can use

In the CF use formula is and


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


--


Regards,


Peo Sjoblom


"snakey" wrote in message
...
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?





  #3  
Old November 16th, 2009, 05:27 PM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default conditional formating with text

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 FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula

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

4. Click Format ButtonPattern and select your color (say Red)
5. Hit OK


If this post helps click Yes
---------------
Jacob Skaria


"snakey" wrote:

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?



  #4  
Old November 17th, 2009, 10:53 AM posted to microsoft.public.excel.misc
snakey
external usenet poster
 
Posts: 4
Default conditional formating with text

Many thanks Jacob - works a treat!

"Jacob Skaria" wrote:

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 FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula

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

4. Click Format ButtonPattern and select your color (say Red)
5. Hit OK


If this post helps click Yes
---------------
Jacob Skaria


"snakey" wrote:

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?



  #5  
Old November 17th, 2009, 10:54 AM posted to microsoft.public.excel.misc
snakey
external usenet poster
 
Posts: 4
Default conditional formating with text

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

"Peo Sjoblom" wrote:

If there cannot be any other parenthesizes then you can use

In the CF use formula is and


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


--


Regards,


Peo Sjoblom


"snakey" wrote in message
...
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?





.

  #6  
Old November 17th, 2009, 06:33 PM posted to microsoft.public.excel.misc
Peo Sjoblom[_3_]
external usenet poster
 
Posts: 137
Default conditional formating with text

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


"snakey" wrote in message
...
Thanks Peo, this also works, as does Jacobs suggestion - will now decide
which one to use!

"Peo Sjoblom" wrote:

If there cannot be any other parenthesizes then you can use

In the CF use formula is and


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


--


Regards,


Peo Sjoblom


"snakey" wrote in message
...
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?





.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.