Conditional formatting an empty row when under a row with text

Milos

Board Regular
Joined
Aug 28, 2016
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I'm working on a large list of thousands of rows down by about 10 columns wide. I am just wanting the list to be made a little easier on the eyes when scrolling down the data rows.

Could somebody write me an easy conditional format so that an empty row will highlight when the row is underneath a row that has text within it? I just want an easy way to separate rows of data without making every empty row highlight.

For example:

AayeBeeCee
abc
def
[Hightlighted][Hightlighted][Hightlighted]
ghi
jkl
[Highlighted][Highlighted][Highlighted]
mno
[Highlighted][Highlighted][Highlighted]

<tbody>
</tbody>


Thanks!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Highlight your range
Go to Conditional Formatting
-New Rule
-Use Formula (replace A1 in the code below with first cell in your range)
Code:
=A1=""
-Format (choose format)
-OK
-OK
 
Upvote 0
Only the first empty cells row below data is to be highlighted

Select all used cells starting in A2 and use =IF(A1<>"",TRUE,FALSE) in the conditional formatting formula
 
Upvote 0
Thanks Bill,

If I take out the "less than sign" the rule works perfectly!

=IF(A1>"",TRUE,FALSE)
 
Upvote 0
No need to use the IF() statement in CF, it only works on TRUE or FALSE. So you could just use
=A1>""
 
Upvote 0
Thanks guys,

Does anyone know how I would alter this conditional format rule so that it would also alter numbers in the above column? As this rule only applies to text..
 
Upvote 0
Not really sure I understand what you are trying to do here,but...

1. CF is a cosmetic change only, it does not affect the contents of the underlying cells.
2. Formulas can only affect the cell they reside in, they cannot do anything to other cells.
 
Upvote 0
Sorry, bad wording on my part. I was meaning altering the rule to include numbers as well as text. As the use of two quotation marks (i.e." ") does not pick up numbers or dates etc. This means it works but it is patchy as the there are number columns in between text columns.
 
Upvote 0
So you want to color the columns with dates (dates are just numbers, btw) and numbers as well as text, or just text, or just numbers?
Also, not sure if you have, in your actual formula, but don't put a space between ""
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,008
Members
449,480
Latest member
yesitisasport

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