문제

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.

enter image description here

Kind Regards

도움이 되었습니까?

해결책

Try this:

=IF(ISBLANK([date]), "", [date])

Test result:

enter image description here

다른 팁

Try this formula:

=IF(ISBLANK([Date Column]), "", TEXT([Date Column], "dd/mm/yyyy"))

Microsoft documentation: Calculated Field Formulas - Text Formats

Note:

  1. Put this formula in your calculated column (Review)
  2. Return your calculated field as Single line of text.
  3. 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(,).
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top