Kaye
In an conditional If (IIf) statement, the first part that follows the criteria is the True, the second part is the False.
In other words, IIf(Sky = Blue,"sunny","raining")
Following that logic, is what you want to evaluate
if both E2 and G2 = "" then TRUE PART, otherwise the FALSE part of the equation which is also conditional.?
If so it would go something like IIf(E2="" And G2="",Now()-D2,IIf(G2-$D2)>=0,G2-D2,E2-D2)))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.