Conditional Formatting

n18

New Member
Joined
Apr 14, 2011
Messages
17
Hi

I have conditional formatting, basically there's a date in a cell and if today is within 15 days of the date it turns red. It works fine, but I'm applying it to a few hundred cells and the formatting is also turning current blank cells red. I need to adjust my below formula to ensure that any blank cell is not changed, simple I know! but I've tried a few conditions and cant seem to get it to work. I need to check if B2 is blank or not. I'm already checking to see if D2 is blank.

=AND((B2-TODAY())<15,D2="")

Thanks
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Thanks Andrew, that's exactly what i tried and assumed would have worked but unfortunately not, The data is coming from a linked worksheet.
 
Upvote 0
B2 is simply getting its data from another worksheet so its linked

='Sales'!J2

I think your formula is right its just not picking up the cell as being blank I guess that that may be another issue relating to the linkage
 
Upvote 0
Thanks for the reply. I have a date in J2 in the format dd/mm/yyyy. The format type is Custom dd/mm/yyyy;"";"" the column which is linking to it has the same custom format type.

I am using this custom type because when I linked the sheets any blank cell in sales sheet was appearing as 01/01/1900 in my 2nd sheet.
 
Upvote 0
Works now, cheers Andrew, appreciate the help, couldn't seem to figure that out myself. Thanks a lot
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,220
Members
452,895
Latest member
BILLING GUY

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