문제

I want to display a blank field in the calculated column if both the reference fields are blank, but SharePoint displays the default date as 30-Dec-1899.

Formula I used in Calculated column:

=IF(ISBLANK([Actual Release Date]),TEXT([Forecast Release Date],"dd-mmm-yyyy"),TEXT([Actual Release Date],"dd-mmm-yyyy"))

Updated requirements:

If actual release is blank then it should consider the forecast release in the calculated column, if both dates are available then it should take the actual release date.

But when both the reference fields are blank, then it should leave the calculated value as blank instead of giving the default date (30-Dec-1899).

도움이 되었습니까?

해결책

Below formula shows will show blank field in calculated column if both date fields are blank otherwise it will show "Both Date Fields are not blank".

=IF(AND(ISBLANK([Actual Release Date]),ISBLANK([Forecast Release Date])),"","Both Date Fields are not blank")

References:

  1. IF function.
  2. AND function.

Update:

Below formula meets all your requirements, please check using this:

=IF(ISBLANK([Actual Release Date]),IF(ISBLANK([Forecast Release Date]),"",TEXT([Forecast Release Date],"dd-mmm-yyyy")),TEXT([Actual Release Date],"dd-mmm-yyyy"))

enter image description here

다른 팁

Do a search on "excel if and formula" . Here is an example from exceljet.com

=IF(AND(A1="this",B1="that"),"x","")

Ganesh's Formula is correct and you can change the "Both Date Fields" to your required text. enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top