Using =IF(AND(OR Statement to searchselect 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 123 = Q1 and 456=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 13 = Q1 , and 46 = Q2 but 79 = '0'Q3 and 1012='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
Check out the Formula Handbook template!