A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Unfurtunately not
I get the answer: "Something got wrong, The formula is not supported or contains a syntax error."
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am trying to use an IF firmula in Microsoft Lists to categorize a date (in the [Data de Término] columm) into quarter for the year 2025, bit it isn't working as expected. The [Data de Término] column is of the Date and Time type Here is the formula I am using:
=IF(YEAR([Data de Término])<2025, "Past", IF(YEAR([Data de Término])=2025; IF(MONTH([Data de Término])<=3, "1st Quarter / 2025"; IF(MONTH([Data de Término])<=6, "2nd Quarter / 2025", IF(MONTH([Data de Término])<=9, "3rd Quarter / 2025", IF(MONTH([Data de Término])<=12, "4th Quarter / 2025", "Broken")))); "Future"))
If the year of [Data de Término] is before 2025, the formula should return "Past".
Could you please help me understand why this formula isn't working as expected and how I can adjust it to work with the Date and Time column type in Microsoft Lists?
Thank you!"
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Unfurtunately not
I get the answer: "Something got wrong, The formula is not supported or contains a syntax error."
Dear Débora,
Have you tried the suggestions above? May I know whether you need further help on this issue?
Your effort and time are greatly appreciated!
Sincerely
Cliff | Microsoft Community Moderator
Dear Débora,
Thanks for your updates.
Sorry for the confusion.
I think it is a publish mistake of the page.
I just copy and paste the formula from my environment.
=IF(YEAR([Data de Término])<2025,"Past",IF(AND(YEAR([Data de Término])=2025,MONTH([Data de Término])<=3),"1st Quarter / 2025",IF(AND(YEAR([Data de Término])=2025,MONTH([Data de Término])<=6),"2nd Quarter / 2025",IF(AND(YEAR([Data de Término])=2025,MONTH([Data de Término])<=9),"3rd Quarter / 2025",IF(AND(YEAR([Data de Término])=2025,MONTH([Data de Término])<=12),"4th Quarter / 2025",IF(YEAR([Data de Término])>2025,"Future","Broken"))))))
Can you see that correctly now from your side? I found that < will be replaced with < and > will be replaced with >. Could you copy the formula in Word and use find and replace to correct &It; as < and try it to see the result?
Welcome to share any updates at your convenience.
Your effort and time are greatly appreciated!
Sincerely
Cliff | Microsoft Community Moderator
May I use "<" or is It a mistake when u published gere?
Dear Débora,
I think that you can try the following formula to see and let us know the result.
=IF(YEAR([Data de Término])<2025,"Past",IF(AND(YEAR([Data de Término])=2025,MONTH([Data de Término])<=3),"1st Quarter / 2025",IF(AND(YEAR([Data de Término])=2025,MONTH([Data de Término])<=6),"2nd Quarter / 2025",IF(AND(YEAR([Data de Término])=2025,MONTH([Data de Término])<=9),"3rd Quarter / 2025",IF(AND(YEAR([Data de Término])=2025,MONTH([Data de Término])<=12),"4th Quarter / 2025",IF(YEAR([Data de Término])>2025,"Future","Broken"))))))
Your effort and time are greatly appreciated!
Sincerely
Cliff | Microsoft Community Moderator