Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

conditional formatting using contains

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nic4asu - 28 Nov 2005 23:46 GMT
Can I specify a formula where I highlight the entire row if one cell contains
the word "auto-renew"?
Bernie Deitrick - 29 Nov 2005 02:32 GMT
Select all the cells (click above and to the left of cell A1), and then
choose Format / CF...  use "Formula is" and the formula

=COUNTIF(1:1,"*auto-renew*")>0

and set your formatting as desired.

HTH,
Bernie
MS Excel MVP

> Can I specify a formula where I highlight the entire row if one cell
> contains
> the word "auto-renew"?
B. R.Ramachandran - 29 Nov 2005 03:16 GMT
Hi,

The Conditional-Formatting formula you have to use depends on where the word
"auto-renew" can occur in the spreadsheet.  

Let us imagine that the data are in columns A:E and rows 2:101 (i.e., the
data range is A2:E101).  Select the entire data-range (STARTING with A2), and
use one of the following CF formulas depending on the scenario.

If the word "auto-renew" can occur in one or more cells in ONLY ONE column
(say Column A) and you want to highlight the corresponding rows, the formula
is,

=$A2="auto-renew"

If, on the other hand, the word can occur in one or more cells ANYWHERE in
the spread-sheet and you want to highlight the corresponding rows, the
formula is,

=ISNUMBER(MATCH("auto-renew",$A2:$E2,0))

Regards,
B. R. Ramachandran

> Can I specify a formula where I highlight the entire row if one cell contains
> the word "auto-renew"?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.