Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
George Lynch
 
Posts: n/a
Default Conditional Formatting based on Text within Text

I need to create a conditional format based on a text string that will be
contained in a larger text string within the active cell. I know I can use
either the SEARCH or FIND function to determine if a text string is contained
within a larger string, but those functions require a cell address and I
don't know how to apply them to the current cell address, whatever it might
be.

So, for example, if the text string is "needs training", and the text in
cell A5 is "George has had some exposure to the app, but he needs training",
then I would want that cell to apply a conditional format because the phrase
"needs training" is contained in the cell.

Thanks in advance for any advice on this...
  #2   Report Post  
PegL
 
Posts: n/a
Default

use the first cell select. So if you select all of column A, use A1. If you
select A2:A500, use A2.

"George Lynch" wrote:

I need to create a conditional format based on a text string that will be
contained in a larger text string within the active cell. I know I can use
either the SEARCH or FIND function to determine if a text string is contained
within a larger string, but those functions require a cell address and I
don't know how to apply them to the current cell address, whatever it might
be.

So, for example, if the text string is "needs training", and the text in
cell A5 is "George has had some exposure to the app, but he needs training",
then I would want that cell to apply a conditional format because the phrase
"needs training" is contained in the cell.

Thanks in advance for any advice on this...

  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

Select A5. Choose Format/Conditional Formatting...

CF1: Formula is =COUNTIF(A5,"*needs training*")
Format1: <your format here

In article ,
George Lynch wrote:

I need to create a conditional format based on a text string that will be
contained in a larger text string within the active cell. I know I can use
either the SEARCH or FIND function to determine if a text string is contained
within a larger string, but those functions require a cell address and I
don't know how to apply them to the current cell address, whatever it might
be.

So, for example, if the text string is "needs training", and the text in
cell A5 is "George has had some exposure to the app, but he needs training",
then I would want that cell to apply a conditional format because the phrase
"needs training" is contained in the cell.

Thanks in advance for any advice on this...

  #4   Report Post  
George Lynch
 
Posts: n/a
Default

Hi Peg,

Thank you for your suggestion. Works perfectly.

George

"PegL" wrote:

use the first cell select. So if you select all of column A, use A1. If you
select A2:A500, use A2.

"George Lynch" wrote:

I need to create a conditional format based on a text string that will be
contained in a larger text string within the active cell. I know I can use
either the SEARCH or FIND function to determine if a text string is contained
within a larger string, but those functions require a cell address and I
don't know how to apply them to the current cell address, whatever it might
be.

So, for example, if the text string is "needs training", and the text in
cell A5 is "George has had some exposure to the app, but he needs training",
then I would want that cell to apply a conditional format because the phrase
"needs training" is contained in the cell.

Thanks in advance for any advice on this...

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
conditional formatting based on column snax500 Excel Discussion (Misc queries) 4 April 27th 05 06:13 PM
Calculate percentage based on cells with conditional formatting Cachod1 New Users to Excel 5 April 4th 05 02:11 PM
Conditional formatting of text LeAnne New Users to Excel 7 March 4th 05 02:34 PM
Conditional formatting based on text Gilles Desjardins Excel Worksheet Functions 8 February 16th 05 10:45 PM
Conditional Formatting of Text... Birmangirl Excel Discussion (Misc queries) 3 January 19th 05 02:45 PM


All times are GMT +1. The time now is 08:40 PM.

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

About Us

"It's about Microsoft Excel"