Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

IF(And = I have tried this several times Could anyone help

I need to update a value in a new column.

How would I look at a date column that shows dates between 01/01/2025 to 03/31/2025 and place the value of Q1_2025 into another cell?

Q1_2025 is working as it should. The others do not. I tried doing one quarter at a time; however, I still get a message that it is incorrect.

=IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 1, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 3, 31)),"Q1_2025"),

IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row>=DATE(2025,4,1),[BNP PARIBAS Paid Date (Workflow Trigger)]@row<=DATE(2025,6,30)),"Q2_2025”),

IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row>=DATE(2025,7,1),[BNP PARIBAS Paid Date (Workflow Trigger)]@row<=DATE(2025,9,30)),"Q3_2025”),

IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row>=DATE(2025,10,1)),([BNP PARIBAS Paid Date (Workflow Trigger)]@row,DATE(2025,12,31),"Q4_2025"))))

Tags:

Best Answer

  • Community Champion
    Answer ✓

    Hi @cswicegood,

    You have the syntax a bit off, you are closing the IF statements after the "true" condition. Try the following.

    =IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 1, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 3, 31)), "Q1_2005", IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 4, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 6, 30)), "Q2_2025", IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 7, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 9, 30)), "Q3_2025", IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 10, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 12, 31)), "Q4_2025"))))

    Hope this helps,

    Dave

Answers

  • Community Champion
    Answer ✓

    Hi @cswicegood,

    You have the syntax a bit off, you are closing the IF statements after the "true" condition. Try the following.

    =IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 1, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 3, 31)), "Q1_2005", IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 4, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 6, 30)), "Q2_2025", IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 7, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 9, 30)), "Q3_2025", IF(AND([BNP PARIBAS Paid Date (Workflow Trigger)]@row >= DATE(2025, 10, 1), [BNP PARIBAS Paid Date (Workflow Trigger)]@row <= DATE(2025, 12, 31)), "Q4_2025"))))

    Hope this helps,

    Dave

  • ✭✭✭✭

    Thank you.

    Very helpful

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions