Forum Discussion

DabriFo's avatar
DabriFo
Copper Contributor
Nov 02, 2023

Status Date

I am batteling with the following formula in MS Project: IIf([Status Date]=#2023/01/31#,[Actual Cost],0)

Can somebody please tell my why it keeps on returning 0 even if the Status Date is set as 2023/01/31?

  • Time part is missing in the date literal #2023/01/31#. Either exclude the times in the comparison expression or add them to both sides. That is, either use Int( [Status Date] ) = #2023/01/31# or [Status Date] = #2023/01/31 17:00# assuming that the status time is 17:00 based on the default end time.
  • ismet_kocaman's avatar
    ismet_kocaman
    Brass Contributor
    Time part is missing in the date literal #2023/01/31#. Either exclude the times in the comparison expression or add them to both sides. That is, either use Int( [Status Date] ) = #2023/01/31# or [Status Date] = #2023/01/31 17:00# assuming that the status time is 17:00 based on the default end time.

Resources