Using =IF(AND(OR Statement to search-select values to label
I have 2 columns:
1) MONTH# (number of a Month , ex. JAN=1 etc)
2) Quarter# (Q1 Q2 Q3 Q4)
I want to parse out the month numbers so 1-2-3 = Q1 and 4-5-6=Q2 ....etc
I'm trying a short test to verify the IF(AND(OR formula but consistently in INCORRECT ARGUMENT or CANNOT PARSE.
Formula in Quarter# column:
=IF(AND(OR([MONTH#]@row, "1"), OR[MONTH#]@row, "2"), OR[MONTH#]@row, "3")"Q1", " ")))
what am i missing ?
thank you
Rick
Answers
-
Hello, After some further work i was able to create a formula: However I found that any number greater than 6 leaves a '0' header in front of the 'Q' . So editing the field with #'s 1-3 = Q1 , and 4-6 = Q2 but 7-9 = '0'Q3 and 10-12='0'Q4....
I don't see whats different in the earlier part of the string that would automatically add a '0' to the field output.
Please advise and thanks.
-
Try this:
=IF([:Region]@row <= 3, "Q1", IF([:Region]@row <= 6, "Q2", IF([:Region]@row <= 9, "Q3", "Q4")))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!