I’m building a workflow or a car inventory board. I’m trying to create a formula to track how many days a car has been in storage by using a Date column for the storage start date. Currently I am using ROUND(DAYS({Arrival Date},TODAY()),0)*-1 to calculate those days, but this continues to track days even after the car has left the storage.
I need the formula to stop counting days when the Departure Date column is not blank anymore, but retain the number value it was until that date.
You also don’t need the *1 at the end to make it a positive if you flip the dates in the DAYS() function as it should be DAYS({End Date}, {Start Date}).
I have one more question for you. I’m looking to add two more columns to this board to indicate when a car has temporarily left the storage. I would like to subtract the number of days that the car was temporarily removed from storage from the final “Days in storage” column. How can I go about doing that?
Hi @AriellaD - by the two new fields do you mean two additional date columns (Start and End date the car was temporarily removed)? If so this should work:
IF({Storage Status}=“Departed Storage”,
ROUND(DAYS({Departed},{Arrived}) - DAYS({Temp End Date},{Temp Start Date}),0),
ROUND(DAYS(TODAY(),{Arrived}) - DAYS({Temp End Date},{Temp Start Date}),0))
Sure! This is my current formula: IF({Storage Status}=“Departed Storage”,ROUND(DAYS({Departed},{Arrived}),0),ROUND(DAYS(TODAY(),{Arrived}),0))
The formula that Mark suggested earlier didn’t work for me. See below. I’ve added two more date columns to this board for cars that temporarily leave the storage facility and then return. I want to subtract the days the car temporarily left the storage facility from my current equation shown above.
Mark’s suggested formula:
IF({Storage Status}=“Departed Storage”,
ROUND(DAYS({Departed},{Arrived}) - DAYS({Temp End Date},{Temp Start Date}),0),
ROUND(DAYS(TODAY(),{Arrived}) - DAYS({Temp End Date},{Temp Start Date}),0))