=IF((AND(L16="H",H16>0)),(J16-H16+K16),IF((OR(L16="H",H16=0)),(H16+J16+K16),(IF(L16="D",(I16+DATE_TEXT(K16)),IF(L16="C",(H16+J16+K16))))))
When the user selects "d" in L16, the system needs to add a date such as 4/24/2007 in cell I16 and a number of days such as 1000 in cell K16 and display the result in K16. Currently, the result is 16327. It needs to display 4/24/2009.
Thus, the mechanism of DATE_TEXT does not work, and I have tried a few others - DATEVALUE ,,, Likely, I have an error in the formula. However, I was wondering if there is a way to format the cell - M16 in this case - on the fly. Because, the user can select other values from L16 that do not involve dates. Thus, changing the L16 cell from "General" to "Date" will cause a problem for the other user options.
I feel there are two choices, conver the date serial to a date or reformat the display cell on-the-fly. Suggestions? And, thanks in advance.
Steve