Combining two IF functions
Hello!
I am trying to make is a formula that says "If there is a complete date then calculate the # of days that that task took from approval to completion. If complete date is blank then calculate how many days has passed since the approval date".
I have two formulas that work independently but I can't figure out how to put them together. I think I need to make this an OR statement but all my iterations don't seem to work. Any advise would be greatly appreciated.
Formula 1:
IF(ISDATE([CEPA/EPA complete date]@row), [CEPA/EPA complete date]@row - [Approval Date]@row
Formula 2:
=IF(ISBLANK([CEPA/EPA complete date]@row), TODAY() - [Approval Date]@row)
Thank you!😀
Answers
-
Try this...
=IF([CEPA/EPA complete date]@row <> "", [CEPA/EPA complete date]@row, TODAY()) - [Approval Date]@row
-
It worked! Thank you so much.
So I can learn to do this independently next time, how does this work? I think it says if the complete date is something other than blank then use the CEPA/EPA complete date, otherwise use today - approval.
-
Happy to help. 👍️
And yes. That is exactly what the formula is saying.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!