• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

to highlight row and not just cell

Paulbxx

New Member
Hi folks, I’ve been using conditional formatting to highlight a cell when it contains a certain text. what I would like to do is highlight the whole row….so,

I import data from one sheet and it sits in range B5:K46. Is there a macro code I could use to automate that:

If any text in Row I has “RT” in it, it will highlight the whole row from B5 to K5 in dark blue with white font and not just I5. it will then do this for any other row where “RT” is in the cell it highlights that row also.

I’ve searched the site but can’t find a macro code that could work.

Thanks Paul
 
You're writing about “RT” ... four characters or just those two capital letters... RT?
If some cells has text ART - do that match for You?
Are those “RT” in I-column ... as You've written?
Is there any other macros or so in Your file?
Could You send a sample Excel-file, which shows exact ... what are You looking for?
 
You're writing about “RT” ... four characters or just those two capital letters... RT?
If some cells has text ART - do that match for You?
Are those “RT” in I-column ... as You've written?
Is there any other macros or so in Your file?
Could You send a sample Excel-file, which shows exact ... what are You looking for?
Thanks for the reply. I have attached a Sample file for,you. It is RT on the text only. In I7 and I10 it just highlights the singke cell. What I’d like it to do is highlight the whole row B-K in Blue with white font on any row where RT appears.
 

Attachments

Could You use anyway that Conditional Formatting?
Check this files ... RT-rule
Hi, thanks for the quick response. I’m on a mobile device at moment so can’t see it working. Will check when I get home but that looks perfect to me. Will it do the highlight for any row in column I in range B5:K46.
 
I modified Your RT-rule ...
Now, it applies range $B$5:$K$60.
You can modify that range as You want.
The formatting worked perfectly. What I didn’t explain fully was that the cell containing “RT” would also contain a number. I assumed it would pick up RT even if other text was in there. I had to move this column as you can see in the attached workbook but the formula still worked once I amended the formula in your conditioning format rule you kindly inserted. As you can also see when numbers appear alongside the RT text the rule stops. This rule range could be anything from “RT10” up to “RT70”. Is it possible to do this?

Ps - can i pay you in anyway for your help, it really is appreciated.
 

Attachments

  • Cross-Posting. Generally, it is considered poor practice to cross post. That is to post the same question on several forums in the hope of getting a response quicker.
  • If you do cross-post, please put that in your post.
  • Also if you have cross-posted and get an Solution elsewhere, have the courtesy of posting the Solution here so other readers can learn from the answer also, as well as stopping people wasting their time on your answered question.
 
Back
Top