Domanda

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

È stato utile?

Soluzione

Try this:

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

Test result:

enter image description here

Altri suggerimenti

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(,).
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top