# Move task on the monday when it's saturday or sunday?

Topic Labels: Formulas
Solved
958 5
cancel
Showing results for
Did you mean:
4 - Data Explorer

Hey Guys,

first time here. Airtable support forwarded me here. I need your help.

I have a such formula:

IF(
{routine type}=‘daily’,
IF(
{routine type}=‘weekly’,
IF(
{routine type}=‘bi-weekly’,
IF(
{routine type}=‘monthly’,
)
)
)
)

and I would like to combine it with something like this:

IF(
WEEKDAY({next date})=0,
IF(
WEEKDAY({next date})=6,
{next date}
)
)

Can you help me, please? The first formula creates new task depending on the routine type. Weekly routine, monthly routine, etc. The second formula should move the task to the Monday if the first formula lands task on the Saturday or Sunday.

Jack

1 Solution

Accepted Solutions
16 - Uranus

You could simplify that a great deal with SWITCH()

``````IF(
{routine type},
0
), 'days'))

``````
5 Replies 5
13 - Mars

Welcome to Airtable Community !

Can you please screenshot those fields so we can understand the relation between them? For example, where is the data for {next date} coming from?

Tip: When pasting a formula here, paste it in the Preformatted text as to make it easier to copy

4 - Data Explorer

Hey Mohamed,

thank you :winking_face:

Of course. Here are the screenshots:

The formula would look something like that

``````IF(
{routine type}='daily',
IF(
{routine type}='weekly',
IF(
{routine type}='bi-weekly',
IF(
{routine type}='monthly',
)
)
)
)
``````

Hope this helps :slightly_smiling_face: If it does, please mark it as Solution

16 - Uranus

You could simplify that a great deal with SWITCH()

``````IF(