IO_Dork
asked on
Conditional formatting the result of the formula in a cell
I am having trouble with conditional formatting. It seems that conditional formatting formula function only looks to the contents of the cell instead of looking at the formula result when the cell being conditionally formatted contains a formula.
How do I get around this?
How do I get around this?
ASKER
2010 Excel:
Conditional formatting formula:
make cell background pink and font red if =$N9<TODAY()
Formatting Applies To Cells:
$N$9:$N$330
N9:N330 contains the formula:
=+IF(LEFT(BDP($G9 &" Corp"&" cusip",N$8),4)="#N/A","-", BDP($G9 &" Corp"&" cusip",N$8))
so if the above formula results in a date that is less than today's date (or a cells that displays a given date), then highlight the cell background with pink and font red.
Conditional formatting formula:
make cell background pink and font red if =$N9<TODAY()
Formatting Applies To Cells:
$N$9:$N$330
N9:N330 contains the formula:
=+IF(LEFT(BDP($G9 &" Corp"&" cusip",N$8),4)="#N/A","-",
so if the above formula results in a date that is less than today's date (or a cells that displays a given date), then highlight the cell background with pink and font red.
What condition are you using?
Conditional formatting looks at the value in the cell whether it's been manually entered or is the result of a formula.
Conditional formatting looks at the value in the cell whether it's been manually entered or is the result of a formula.
Try this
=DATEVALUE($N9<TODAY())
What exactly does the formula in N9 return?
Is it a 'real' date or text that appears to be a date?
Is it a 'real' date or text that appears to be a date?
ASKER
i am using the last option "Use a formula to determine which cells to format"
also, if I overwrite the formula in the cell with an actual date, the conditional formula works...when I put back the "=+IF(LEFT(BDP($G9 &" Corp"&" cusip",N$8),4)="#N/A","-", BDP($G9 &" Corp"&" cusip",N$8))" formula, it stops working.
also, if I overwrite the formula in the cell with an actual date, the conditional formula works...when I put back the "=+IF(LEFT(BDP($G9 &" Corp"&" cusip",N$8),4)="#N/A","-",
ASKER
the formula in N9 returns a settlement date...pulls the settlement date from Bloomberg...its works through the Bloomberg Excel add-in
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
mcsween
If that's the case, and I think it is, the formula you posted earlier should work - with a minor change.
=DATEVALUE($N9)<TODAY()
If that's the case, and I think it is, the formula you posted earlier should work - with a minor change.
=DATEVALUE($N9)<TODAY()
ASKER
Thanks, That was the issue, a data type mismatch.
condformat.xlsx