Calculated Filed
Question
I have created a calculated filed to convert a date field to another format, the issue I have is the calculated filed populate data for empty fields as well. Is there anyway it can only populate data for the filed which has a data. As you can see in the attachment, when there is empty cell it just fill it with 30/12/1899.
Kind Regards
OTHER TIPS
Try this formula:
=IF(ISBLANK([Date Column]), "", TEXT([Date Column], "dd/mm/yyyy"))
Microsoft documentation: Calculated Field Formulas - Text Formats
Note:
- Put this formula in your calculated column (
Review
) - Return your calculated field as Single line of text.
- Sometimes comma(
,
) does not work in formula (I am not sure but it is based on something language or regional settings on your site). So in that case use semicolon(;
) instead of comma(,
).
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange