Trying to create a formula that determines the current season
I've got a formula that generates the current quarter and one that calculates the current year. Now I'm trying to write an IF statement that creates a value that says S23 by reading if its Q1 or Q2 and then adding the 23 from the current year (2023). This is my current formula, can anyone explain why it's not working or what I need to change?
=IF(OR([Current Quarter]="Q1",[Current Quarter]="Q2"),"S"+([Current Year]-2000),"F"+([Current Year]-2000))
I haven't used the OR function much so wonder if perhaps that's what's throwing the error.
Best Answer
-
Figured it out, I was just missing @row on all my column values. Here's the working formula if anyone needs.
=IF(OR([Current Quarter]@row = "Q1", [Current Quarter]@row = "Q2"), "S" + RIGHT([Current Year]@row, 2), "F" + RIGHT([Current Year]@row, 2))
Answers
-
Figured it out, I was just missing @row on all my column values. Here's the working formula if anyone needs.
=IF(OR([Current Quarter]@row = "Q1", [Current Quarter]@row = "Q2"), "S" + RIGHT([Current Year]@row, 2), "F" + RIGHT([Current Year]@row, 2))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!