# Re: Having a wee bit of brain trouble today with a formula

Solved
932 1
cancel
Showing results for
Did you mean:
8 - Airtable Astronomer

I have a formula that worked but I decided to go and mess with it.

I have a Date field that is the date of the task action

I have a Days to next action field to add to Date field to define next time to attempt the task (normally a callback)

I have a Next Task Date formula field that shows the Date for the next task based on Date + Number of Days  - and it was nicely working

The formula in the Next Task Date field looked like this - DATEADD({Date }, {Days to next action}, 'days')

However I don't want the formula to put anything in the Next Task Date if the Numbers of days is blank

Here is my current formula

If ({Days to next action}=BLANK(), DATEADD({Date }, {Days to next action}, 'days'))

It's failing and I can't figure out why.

1 Solution

Accepted Solutions
18 - Pluto

Try:

``````IF(
{Days to next action},
DATEADD({Date}, {Days to next action}, 'days')
)``````

3 Replies 3
18 - Pluto

Try:

``````IF(
{Days to next action},
DATEADD({Date}, {Days to next action}, 'days')
)``````

8 - Airtable Astronomer

Thanks.  Can I ask why Blank() wouldn't work here.  It was a solution from another problem I found in the Community that almost mimicked my issue of what I was trying to accomplish

I'm not sure either I'm afraid heh, hopefully someone else can answer that