Cell color based on contents

AMK4

New Member
Joined
Jan 30, 2005
Messages
13
Hi folks,

I'm maintaining a list of orders in a custom sheet with the following columns:
Name - Email - Product - Cost - Order Date - Status

What I'd like to do is change the cell background color on all the BLANK cells in the Order Date column. However, if I use Conditional Formatting to select the full column, it will highlight ALL cells that are blank, including those that wouldn't have anything there because I haven't filled anything past the last row. In other words, if I only have 20 items on the sheet, the Conditional Formatting will still highlight the entire column.

I could tell Conditional Formatting to only use the range of 20 items I have on the sheet, however whenever I add more rows, I'd have to go adjust the range again, each time.

So is there a way to use Conditional Formatting to achieve this where it only works with the current range of items and then adjusts as I add more columns?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Assuming "Name" is column A, and "Order" is column E then
- highlight column E
- Select Conditional Formatting > New Rule
- Select "Use a formula to determine which cells to format"
- Type =AND(A1<>"", E1="")
- click on format button and choose the desired format
- click OK
 
Upvote 0
Question: what if I want to leave the first 10-15 ROWS empty? I'd like to put a running chart at the top of the data listed. But the above condition will then also color those cells because the referenced columns are blank. I suppose I can cheat and add something in those columns since it's behind the chart anyway, but I don't suppose that's the proper way of doing it.
 
Upvote 0
ignores first 10 rows
Rich (BB code):
=AND(A1<>"", E1="", ROW(E1)>10)
 
Upvote 0

Forum statistics

Threads
1,196,483
Messages
6,015,460
Members
441,897
Latest member
erma

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