# IF formula with DATEADD as a condition - cannot get this to work

**URL:** <https://community.nocodb.com/t/if-formula-with-dateadd-as-a-condition-cannot-get-this-to-work/2105>\
**Category:** Formulas\
**Created:** [October 9, 2025, 9:39am UTC](https://community.nocodb.com/t/if-formula-with-dateadd-as-a-condition-cannot-get-this-to-work/2105 "2025-10-09T09:39:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Ian](https://community.nocodb.com/u/Ian)\
**Post date:** [October 9, 2025, 9:39am UTC](https://community.nocodb.com/t/if-formula-with-dateadd-as-a-condition-cannot-get-this-to-work/2105/1 "2025-10-09T09:39:47Z")

</div>

Hello,

I am trying to create an IF formula containing this;

DATEADD({REVIEWED ON}, 1, ‘year’)

So it would read;

IF({REVIEW NEEDED?}=“Yes”,(DATEADD({REVIEWED ON}, 1, “year”)),“”)

However, it’s simply not working - clicking SAVE FIELD and it’s not accepting it.

The field REVIEW NEEDED? is itself a formula field, with outputs of either Yes or No (as text).

What am I missing here please?

Thanks,

Ian

---

<div class="post-metadata">

**Author:** ![dstala](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dstala](https://community.nocodb.com/u/dstala)\
**Post date:** [October 9, 2025, 9:51am UTC](https://community.nocodb.com/t/if-formula-with-dateadd-as-a-condition-cannot-get-this-to-work/2105/2 "2025-10-09T09:51:29Z")

</div>

This works. If you are copy pasting formula, sometimes the quotes used are incorrect one’s. I would recommend to remove quotes in the formula and type again.

```auto
IF(({REVIEW NEEDED?} == "Yes"), DATEADD({REVIEWED ON}, 1, "year"), "")

```

---

<div class="post-metadata">

**Author:** ![Ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Ian](https://community.nocodb.com/u/Ian)\
**Post date:** [October 9, 2025, 9:54am UTC](https://community.nocodb.com/t/if-formula-with-dateadd-as-a-condition-cannot-get-this-to-work/2105/3 "2025-10-09T09:54:24Z")

</div>

I actually managed it with this;

SWITCH({REVIEW NEEDED?}, “Yes”, (DATEADD({REVIEWED ON}, 1, ‘year’)), “”)

Worked perfectly!
