Forum Discussion
combining ISBLANK with IF/ELSE
davyjones Your formula looks fine to me. What is the return data type in calculated column settings?
If it is "Date and Time", returning "N/A" values from formula might not work in this case. So, you have two possible ways to solve this problem:
- Continue using "Date and Time" as return type & pass the default date value in case stage column ([RequestState]) is empty.
- Use "Single line of text" as return type & convert the date calculations to text value like:
=IF(ISBLANK([RequestState]),
"N/A",
IF([RequestState]="SUN",
Text(TODAY()-SUN_Initiated, "dd/mm/yyyy"),
IF([RequestState]="DS",
Text(TODAY()-DS_Initiated, "dd/mm/yyyy"),
IF([RequestState]="TechEffort",
Text(TODAY()-TechEffort_Initiated, "dd/mm/yyyy"),
IF([RequestState]="CCB",
Text(TODAY()-CCB_Initiated, "dd/mm/yyyy"),
IF([RequestState]="Release",
Text(TODAY()-Release_Initiated, "dd/mm/yyyy"),
Text(TODAY()-VR_Initiated, "dd/mm/yyyy")
)
)
)
)
)
)
Documentation: Calculated Field Formulas
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
ganeshsanap Thank you for your suggestion! The issue is not the return type, however. I would like a whole number answer for 'how many days have passed' for that formula.
My issue is when the formula encounters a blank column, it defaults to the '12/31/2001' number and results in a huge number for the end. I would like to just have the answer of 'N/A', but it doesnt seem to want to pick that up. Your formula seems to be just like mine, so I wonder why...