Using IF function to create a date

Closed
Report
Posts
1
Registration date
Monday September 10, 2012
Status
Member
Last seen
September 10, 2012
-
Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
-
Hello,
I am trying to create a cell that shows todays date if another cell has a particular value.

The formula I am currently using is:
IF(E9=L,TODAY) where L refers to whether a project is live or not. If the project is live, I want the cell to show todays date so I can then use DATEDIF in another cell to show the number of days the project has been live for.
I have tried various differnt versions and either I have too many or too few arguments. I just want it to remain blank if the argument is false.

Thanks




1 reply

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
768
the format is
=IF(condition, true, false)
so
=IF(E9="L",TODAY, "")