문제

Using the following:

"If Authorization Date is null, calculate the difference between Receive Date and today; If Authorization Date is not null, calculate the difference between Receive Date and Authorization Date"

This formula was tried but generated bad results:

=IF(ISBLANK([Authorization Date]),DATEDIF([Received Date],TODAY(),"d"),DATEDIF([Authorization Date],[Received Date],"d"))

Any insight / help would be appreciated!

도움이 되었습니까?

해결책

The function DATEDIF(start_date,end_date,unit) says that if the start_date is greater than the end_date, the result will be #NUM!.

So try as follows:

IF(ISBLANK([Authorization Date]),[Receive Date]-TODAY(),[Authorization Date]-[Receive Date])
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top