# Problems with Formula

**URL:** <https://forum.seatable.com/t/problems-with-formula/3258>\
**Category:** Formulas\
**Created:** [February 27, 2024, 11:45am UTC](https://forum.seatable.com/t/problems-with-formula/3258 "2024-02-27T11:45:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emanuela](https://forum.seatable.com/letter_avatar_proxy/v4/letter/e/7cd45c/32.png) [@Emanuela](https://forum.seatable.com/u/Emanuela)\
**Post date:** [February 27, 2024, 11:45am UTC](https://forum.seatable.com/t/problems-with-formula/3258/1 "2024-02-27T11:45:54Z")

</div>

Hi,  
I have to write a formula that enters in the column called ‘Job Closing Time’ how many days have passed between the date of the ‘Start’ column and the date of the ‘End’ column, only if the Status column is Closed.  
I tried with this: if{Status} = “Closed” dateDif {End} - {Start} , but it doesnt’work. Help me please.

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [February 27, 2024, 4:10pm UTC](https://forum.seatable.com/t/problems-with-formula/3258/2 "2024-02-27T16:10:38Z")

</div>

Please consult the formula reference: [Formula Reference - SeaTable](https://seatable.io/en/docs/formeln/formelreferenz/)

---

<div class="post-metadata">

**Author:** ![kgr](https://forum.seatable.com/letter_avatar_proxy/v4/letter/k/67e7ee/32.png) [@kgr](https://forum.seatable.com/u/kgr)\
**Post date:** [February 29, 2024, 3:38pm UTC](https://forum.seatable.com/t/problems-with-formula/3258/3 "2024-02-29T15:38:48Z")

</div>

You have to pay attention to the syntax required by the formula (e.g., brackets, commas, units). This should work:

if({Status} = “Closed”, dateDif({Start}, {End}, “D”))

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [March 2, 2024, 3:39pm UTC](https://forum.seatable.com/t/problems-with-formula/3258/4 "2024-03-02T15:39:23Z")

</div>

Closed on March 2, 2024, 3:39pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
