As best I can tell, IF([cell],TRUE,FALSE) is always returning TRUE if [cell] contains a value, but I can't find any documentation on this sort of truth-value test in Excel 2010. I don't know what it's called, and all the documentation I can find seems to require some conditional operator in the first field of the IF function. Is this shorthand, a bug, or am I using some other feature in a way that is unintended?
Here's my mess:
=IF([@[LL Billed]],NETWORKDAYS([@Closed],[@Paid]),NETWORKDAYS([@Closed],TODAY()))
All referenced cells either contain a date or are blank. Currently, if @[LL Billed] is blank and @Paid is blank (@closed always contains a date), I get an integer returned (which is how it should work).
What I need to do is change this formula so the logic test checks whether there is a value in both @[LL Billed] AND in @Paid; if both contain value it should return TRUE, and if either one contains no value then it should return FALSE.
I'd like to avoid completely restructuring this IF function because it has symmetry with other functions in the workbook. Is there another "shorthand" test I can employ as part of the logic test? I've tried nesting NOT-ISBLANK-AND functions, but to no avail, plus it's messy.
Any suggestions?