Conditional Formating Blanks

Livin404

Well-known Member
Joined
Jan 7, 2019
Messages
743
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Greetings,

I'm trying to use conditional formatting to highlight any blank cells in a database. I know the formula is something like
Excel Formula:
=AND(A2="",COUNTA(A2:J$10000))

I want the code to start on A2 and go down only to the last filled cell in Column J and highlight all the blanks. I think " " covers the blank cells, and the COUNTA will look for the fille cells.
I know it's very close, but I'm missing something.

Thank you,
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I am not sure the need for the COUNTA portion of your formula.
If you are truly just looking to highlight the empty cells, this should do it:
Excel Formula:
=A2=""
 
Upvote 0
How about
Excel Formula:
=AND(A2="",ROWS(A$2:A2)<=COUNTA(J$2:J$10000))
 
Upvote 0
I tried both those formuals without much luck. Does it matter I have
Excel Formula:
=ODD(ROW())=ROW()

Thank you,
 
Upvote 0
It sounds like maybe you are trying to use more criteria than just looking for blank cells, but I cannot tell what from your explanations (it is very unclear to me).
Are your blank cells really blank, or are they returning something like a single space?

Could you post a sample of your data and show us exactly what you are trying to do?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
If you have a formula, or blank cells in col J try
Excel Formula:
=AND(A2="",ROW()<=LOOKUP(2,1/($J$2:$J$10000<>""),ROW($J$2:$J$10000)))
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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