Forum Discussion

LisaSingleton's avatar
LisaSingleton
Brass Contributor
Oct 08, 2024
Solved

Help with If/And function

Trying to calculate the age of a closed item and getting errors with the below formula.  The objective is to calculate how long it took for an item to close (filtering on Closed items only).  Thanks

 


=IF(AND(I68="Closed"),M68<>"",M68-Q68,TODAY()-Q68)

  • LisaSingleton 

    =IF(AND(I68="Closed",M68<>""),M68-Q68,TODAY()-Q68)

     

    Does this work in your sheet? However it's better to share an example without sensitive data which shows the sample data along with the expected result.

5 Replies

  • LisaSingleton 

    =IF(AND(I68="Closed",M68<>""),M68-Q68,TODAY()-Q68)

     

    Does this work in your sheet? However it's better to share an example without sensitive data which shows the sample data along with the expected result.

    • LisaSingleton's avatar
      LisaSingleton
      Brass Contributor

      OliverScheurich 

      Thanks for your reply.  Per sample table below, I would like to calculate the age of an item as long as it's open, but once status is "closed" would like calculation to stop.  Expected result is reflected in last row, where item closed on 10/1 and eventhough today is 10/14, the days calculated is 20.   

      StatusCreated dateDate last updated 
      Pending8/9/20249/30/202466
      New9/1/2024 43
      Closed9/11/202410/1/202420

Resources