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 sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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
Thank you so much for your response. If I may ask, what does the "=39" mean here in the formula?
Ah - I think I got it. It's the number of columns from J to AV. Thanks again for the help.
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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