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"))))
Best 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
-
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
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 508 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!