1

I would like to use two formulas to define the field 'Age'.

  1. If the column 'Date Project is Completed/Cancelled' is populated, then Age = 'Date Project is Completed/Cancelled' - 'Date Assigned'

  2. If the column 'Date Project is Completed/Cancelled' is not populated,
    then Age = 'Current Date' - 'Date Assigned'

This is the formula I used but SharePoint will not accept:

=IF(ISBLANK ([Date Project is Completed/Cancelled]), [Current Date] - [Date Assigned], [Date Project is Completed/Cancelled] - [Date Assigned])
Mike
  • 12,186
  • 8
  • 41
  • 64
user67643
  • 11
  • 2

1 Answers1

1

See all answers at: How to use Today and Me in Calculated column

You can not do Current Date calculations in a Calculated Column


The comparison part of your IF is with the OR function:

=IF( OR( [Date Project]="Completed" , [Date Project]="Cancelled"), TRUE, FALSE)
Mohamed El-Qassas MVP
  • 45,382
  • 9
  • 53
  • 96
Danny '365CSI' Engelman
  • 21,176
  • 7
  • 35
  • 79