Conditionally Format row if formula in cell returns a date

SaraWitch

Active Member
Joined
Sep 29, 2015
Messages
377
Office Version
  1. 365
Platform
  1. Windows
Hi peeps,

I have a formula in A1 that picks up a date from a range of other cells. If there are no dates in the range, A1 remains blank. I want to conditionally format the row colour when that formula returns a date but remain as is if blank.

Before the formula, I was using a conditional format rule:
Excel Formula:
=$A1>0
and changing the row colour. However, with the formula now in A1, the row is changing colour regardless of whether there is an actual date or if the cell is blank.

I have also tried
Excel Formula:
=$AE8("format",$AE8)="D4"
but this is not working either (my date format is dd/mm/yyyy and I cannot find the date code for this, but I have changed the cell format to dd/mm/yy and it makes no difference).

Any help would be appreciated...
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Maybe try this:
(This will not work if you formula returns text, but you could make the CF test an AND function:
Excel Formula:
=AND($A1<>"",IsNumber($A1))
or maybe just
Excel Formula:
=ISNUMBER($A1)

Cell Formulas
RangeFormula
A1,A4A1=DATE(2023,1,1)
B1:B4B1=A1<>""
C1:C4C1=FORMULATEXT(A1)
A2A2="dfasd"
A3A3=""
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:D11Expression=$A1<>""textNO
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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