highlighting a cell that contains a specific word within a phrase

jmac98

New Member
Joined
Mar 30, 2012
Messages
26
i can't get the conditional formating to work. what im trying to do is look through each cell in a specific column and each cell that contains the word MSCI ( it will be one word in a phrase) highlight that row yellow. Does anyone know how to do this in VBA? Also i will need use this macro on numerous other spreedsheets is there a way to write it were it is available everytime excel is open and is not specific to this one spreadsheet?

Thanks for your time
 
Try this...

Select the *entire* range E1:E1794 starting from cell E1.
Cell E1 will be the active cell. The active cell is the
one cell in the selected range that is not shaded. The
formula will be relative to the active cell.

Goto the menu Format>Conditional Formatting
Select the Formula Is option
Enter this formula in the box on the right:

=SEARCH("MCSI",E1)

Click the Format button
Select the Patterns tab
Select a shade of yellow
OK out

HAHA thanks works perfectly
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
exact range E1:E1794

im using excel 2003

Select cells E1:E1794 with E1 the active cell, then use this Conditional Formatting formula...

=COUNTIF(E1,"*MSCI*")

Don't forget to select your fill color.
 
Upvote 0
if i after i do the formatting for this column, in a seperate column i want to put an if then statement formula that found when ever a cell in column E is filled yellow put a Y indicator in this column is that possible?
 
Upvote 0
if i after i do the formatting for this column, in a seperate column i want to put an if then statement formula that found when ever a cell in column E is filled yellow put a Y indicator in this column is that possible?
You can use Rick's formula for that...

=IF(COUNTIF(E1,"*MSCI*"),"Y","")

Copy down as needed.
 
Upvote 0
You can use Rick's formula for that...

=IF(COUNTIF(E1,"*MSCI*"),"Y","")

Copy down as needed.
That formula is too long... my hands would become tired from typing so many characters

=LEFT("Y",COUNTIF(E1,"*MSCI*"))

:LOL:
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top