Highlighting Cell When Another Cell Contains Text

americantuna

New Member
Joined
May 8, 2019
Messages
11
Hello all,

I was wondering how I can go about highlighting a cell (i.e. B2) if another cell in its row (i.e. O2) contains text.

I don't want a rule that says specific word or words must be entered, just if the cell contains ANY text.

I also then want to copy that rule all the way down the sheet so that each row only checks its own row.

I basically want to use it to highlight the first cell to indicate that there are notes (Column O will be a notes section) in that row so I don't have to keep scrolling over to check.

I feel like this would be simple, but I'm sitting at my desk at work and my mind is just blank. Any help would be appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the Board!

To apply it to cell B2, use the formula option of Conditional Formatting, and enter this formula:
Code:
=ISTEXT($O2)

To apply it to multiple rows at once, select the entire range you want to apply it to, then write the formula as it pertains to the first cell in your selected range.
Excel will automatically adjust it for the other rows.
 
Upvote 0
Welcome to the Board!

To apply it to cell B2, use the formula option of Conditional Formatting, and enter this formula:
Code:
=ISTEXT($O2)

To apply it to multiple rows at once, select the entire range you want to apply it to, then write the formula as it pertains to the first cell in your selected range.
Excel will automatically adjust it for the other rows.

Actually, one more question. If I wanted to do a OR function using this same setup, how would I do it?

For instance, if I wanted to highlight if there is text in either O2 or J2?
 
Upvote 0
For instance, if I wanted to highlight if there is text in either O2 or J2?
Try:
Code:
[COLOR=#333333]=OR(ISTEXT($O2),ISTEXT($J2))[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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