Highlight a row in excel

MiteshG

New Member
Joined
Sep 12, 2022
Messages
23
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi - I have an excel sheet which has numerical data in columns J through AV. I would like to highlight rows where all columns have data as either 0 or blank. How do I achieve it through either conditional formatting or formula? Example below - (In this, I would like to highlight row 2). Thanks in advance for your help
100
00
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You can use Conditional Formatting to do that.

Let's say that you wanted to do this to rows 3:100. Then do the following:

1. Select the rows 3:100
2. Go to Conditional Formatting, and select the "Use a formula to determine which cells to format" option
3. Enter the following formula:
Excel Formula:
=COUNTIF($J3:$AV3,0)+COUNTIF($J3:$AV3,"")=39
4. Choose your desired formatting option
5. Click OK

This should do what you want.
 
Upvote 0
Solution
You can use Conditional Formatting to do that.

Let's say that you wanted to do this to rows 3:100. Then do the following:

1. Select the rows 3:100
2. Go to Conditional Formatting, and select the "Use a formula to determine which cells to format" option
3. Enter the following formula:
Excel Formula:
=COUNTIF($J3:$AV3,0)+COUNTIF($J3:$AV3,"")=39
4. Choose your desired formatting option
5. Click OK

This should do what you want.
Thank you so much for your response. If I may ask, what does the "=39" mean here in the formula?
 
Upvote 0

Forum statistics

Threads
1,223,061
Messages
6,169,873
Members
452,287
Latest member
winnievmex

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