Highlight Row if Any Cell Contains Phrase

crlyn

New Member
Joined
Apr 29, 2011
Messages
5
Hi there!
I've searched all over for this and can only find examples specific to the asker's spreadsheet, and I can't figure out how to make the answers apply to my situation, so I figured I'd ask here!

The Problem:
I have a couple of spreadsheets I'm creating for a small group to use, and I would like to highlight an entire row if they enter anything that includes a certain phrase (like "paypal" or "wants"). I need these to be not case-sensitive, and conditionally format the colors and borders settings. I messed around with search formulas in conditional formatting, but couldn't get it to take...either I wasn't doing it right, or I need to use a VBA or something (which I don't know how to write).

For example, someone might write "$500 PayPal Deposit" in C2 or N2, and I'd like to highlight that entire row.

Luxury request: Being able to merge all the cells from A to O for that row, so that the deposit phrase is center aligned in the entire chart. I don't even know if this is possible, but that would be really nice.:nya:

Thanks so much for any help!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Thanks for the quick response, VoG! However, that link doesn't help at all. :crash:

I need to find cells with a specific phrase of text in them, so filtering for "$C2<X" or "$C2>X" or "$C2=X", anything like that, won't work (meaning 99% of the "conditional formatting help" threads and blog posts don't help me).
 
Upvote 0
Maybe like this or you''ll have to be more specific

Excel Workbook
ABCDEFGH
2xx$500 PayPal Depositccccc
Sheet7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =ISNUMBER(SEARCH("PayPal",$C2))Abc
 
Upvote 0
We're getting closer! What you posted is exactly as far as I got and is exactly the basic idea of what I'm trying to do.

What I want that's beyond this is for the entire row to be highlighted, and I can't make that happen by either applying the rule to the selected sheet or the selected first row (row 2).

Also, it would be nice to have this happen if someone puts the info in a different spot, too. (Like in column B or column N or somewhere because they're not reading directions or whatever. :rolleyes:)

Thanks for your help!
 
Upvote 0
Let's stick to a value in column C, at least to start with.

Select A2 to as far right and down as far as you want to go then apply the CF formula that I posted.
 
Upvote 0
Oh beautiful–that worked! And combined with a "$L2>0" rule means that either of the two logical places on my sheet (note mentioning 'paypal' or amount of money deposited) makes it light up the entire row.

If we (and by "we" I mean you or someone else giving ideas and me plugging them in and trying to get them to work. hah) can figure out a way to make this work for any cell in the line, that would help for another spreadsheet I'm doing, but I can also just duplicate the rule you gave me for a handful of columns and have almost the same effect.

Thank you! (And for letting me get this thing working today, no less. :))
 
Upvote 0
Select A2 to N as far down as you need then apply the CF

Excel Workbook
ABCDEFGHIJKLMN
24953$500 PayPal Deposit587111955371009586213
38552466249488979249992154380
478231173161049754094841$500 PayPal Deposit27
57657065686615279678718521
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =COUNTIF($A2:$N2,"*PayPal*")>0Abc
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,894
Members
452,948
Latest member
Dupuhini

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