Highlight a row based on a specific text in a cell in the row

b19upj

New Member
Joined
Oct 3, 2014
Messages
29
Hi all,

I am looking to highlight a row based on if a cell within that row is either blank (or 'n').
Basically, for the image attached, I am saying if someone has paid their bill or not.
If y in column H, it should just be no fill, but if they have not paid I would like the entire row of the table highlighted in yellow.
Please see the attachment of me doing it manually. I would like to work out how to do it (presumably with Conditional Formatting).
The data currently goes down to approx 500 rows but will need it to continue for new entries as well, so maybe up to 5000 rows.
TIA
 

Attachments

  • Screenshot 2021-03-09 192617.jpg
    Screenshot 2021-03-09 192617.jpg
    65.1 KB · Views: 5

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,910
Office Version
  1. 365
Platform
  1. Windows
You can use Conditional Formatting to do this.

Here are the steps:
1. Select rows 5-12
2. Go to Conditional Formatting and select "New Rule", then "Use a formula to determine which cells to format"
3. Enter in the following formula:
Excel Formula:
=OR($H5="n",$H5="")
4. Choose the yellow fill formatting style
5. Click OK

This should do what you want.
 
Solution

Watch MrExcel Video

Forum statistics

Threads
1,129,381
Messages
5,635,924
Members
416,887
Latest member
SheriE

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
Top