Using =IF(AND(OR Statement to search-select values to label

Rick Girard
Rick Girard ✭✭✭✭✭
edited 06/21/22 in Formulas and Functions

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 Girard
    Rick Girard ✭✭✭✭✭
    edited 06/20/22

    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.

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    edited 06/21/22

    Try this:

    =IF([:Region]@row <= 3, "Q1", IF([:Region]@row <= 6, "Q2", IF([:Region]@row <= 9, "Q3", "Q4")))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!