Hi. I’m looking to track how much time (in days) a lead spends in each stage in a pipeline. I’m basing it on start and stop dates of time in stage. The formula I’m trying to accomplish is this (hope it makes sense):
Is the start date blank?
- YES: Do nothing, stay blank. (end)
- NO: (ask) Is the end date blank?
—1. YES: Subtract today’s date from start date
—2. NO: Subtract end date from start date
I came up with the following but I just get an error that the formula isn’t correct.
IF({Start Date} = BLANK(), “”, IF({End Date} = BLANK(), DATETIME_DIFF(TODAY(),{Start Date}, ‘days’), DATETIME_DIFF({End Date}, {Start Date}, ‘days’)
What’s not working?!
Definitely new to AirTable and formulas in general so if there is another way to approach this, I’m all ears! :). Thanks!
