Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Conditional Formatting

How do I change the color of a cell to green if the cell contains the phrase
"TBN" anywhere within the text
--
JPS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Conditional Formatting

Say for cell A1, use Formula Is:

=LEN(SUBSTITUTE(A1,"TBN",""))<LEN(A1)

--
Gary''s Student - gsnu200774


"JPS" wrote:

How do I change the color of a cell to green if the cell contains the phrase
"TBN" anywhere within the text
--
JPS

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Conditional Formatting

If TBN is found anywhere within the text of a cell, I need the color of the
font for all of the text in that cell to be green.
--
JPS


"Gary''s Student" wrote:

Say for cell A1, use Formula Is:

=LEN(SUBSTITUTE(A1,"TBN",""))<LEN(A1)

--
Gary''s Student - gsnu200774


"JPS" wrote:

How do I change the color of a cell to green if the cell contains the phrase
"TBN" anywhere within the text
--
JPS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional Formatting

Gary's formula in CF will do that.
If you want also to deal with "tbn" in lower case, change his CF formula to
=LEN(SUBSTITUTE(UPPER(A1),"TBN",""))<LEN(A1)
--
David Biddulph

"JPS" wrote in message
...
If TBN is found anywhere within the text of a cell, I need the color of
the
font for all of the text in that cell to be green.


"Gary''s Student" wrote:

Say for cell A1, use Formula Is:

=LEN(SUBSTITUTE(A1,"TBN",""))<LEN(A1)


"JPS" wrote:

How do I change the color of a cell to green if the cell contains the
phrase
"TBN" anywhere within the text



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Conditional Formatting

David,
I actually need the formula to update column D, does the formula need to
cahnge any?
--
JPS


"David Biddulph" wrote:

Gary's formula in CF will do that.
If you want also to deal with "tbn" in lower case, change his CF formula to
=LEN(SUBSTITUTE(UPPER(A1),"TBN",""))<LEN(A1)
--
David Biddulph

"JPS" wrote in message
...
If TBN is found anywhere within the text of a cell, I need the color of
the
font for all of the text in that cell to be green.


"Gary''s Student" wrote:

Say for cell A1, use Formula Is:

=LEN(SUBSTITUTE(A1,"TBN",""))<LEN(A1)


"JPS" wrote:

How do I change the color of a cell to green if the cell contains the
phrase
"TBN" anywhere within the text






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional Formatting

Put the formula in the Conditional Formatting conditions for whichever
column you want the formatting to occur. In the formula, refer to the cell
whose contents you want to affect the formating.
You can use absolute addressing (the $ prefix) if you wish to apply a format
across a range of columns without it changing the reference. So, for
example, if you wanted columns D to G to be affected by the content of
column B, you could use the CF formula
=LEN(SUBSTITUTE(UPPER($B1),"TBN",""))<LEN($B1) in D1 and it would copy
unchanged across the other columns.
--
David Biddulph

"JPS" wrote in message
...
David,
I actually need the formula to update column D, does the formula need to
cahnge any?
--
JPS


"David Biddulph" wrote:

Gary's formula in CF will do that.
If you want also to deal with "tbn" in lower case, change his CF formula
to
=LEN(SUBSTITUTE(UPPER(A1),"TBN",""))<LEN(A1)
--
David Biddulph

"JPS" wrote in message
...
If TBN is found anywhere within the text of a cell, I need the color of
the
font for all of the text in that cell to be green.


"Gary''s Student" wrote:

Say for cell A1, use Formula Is:

=LEN(SUBSTITUTE(A1,"TBN",""))<LEN(A1)


"JPS" wrote:

How do I change the color of a cell to green if the cell contains
the
phrase
"TBN" anywhere within the text






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
Conditional Formatting Dr. Sachin Wagh Excel Discussion (Misc queries) 4 February 22nd 05 07:17 AM


All times are GMT +1. The time now is 06:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"