Is there a way I can have a Month AND Year lookup?

Options

Currently i am doing a month lookup but some of my data crosses years. How do I incorporate the Year?

=IF(ISBLANK([Target Finish]@row), " ", IF(MONTH([Target Finish]@row) = 1, "January", IF(MONTH([Target Finish]@row) = 2, "February", IF(MONTH([Target Finish]@row) = 3, "March", IF(MONTH([Target Finish]@row) = 4, "April", IF(MONTH([Target Finish]@row) = 5, "May", IF(MONTH([Target Finish]@row) = 6, "June", IF(MONTH([Target Finish]@row) = 7, "July", IF(MONTH([Target Finish]@row) = 8, "August", IF(MONTH([Target Finish]@row) = 9, "September", IF(MONTH([Target Finish]@row) = 10, "October", IF(MONTH([Target Finish]@row) = 11, "November", IF(MONTH([Target Finish]@row) = 12, "December", " ")))))))))))))

Best Answer

  • Heather Duff
    Heather Duff ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @Jennifer_Wirfel ,


    I may be oversimplifying this, but try this:

    =IF(ISBLANK([Target Finish]@row), " ", IF(MONTH([Target Finish]@row) = 1, "January", IF(MONTH([Target Finish]@row) = 2, "February", IF(MONTH([Target Finish]@row) = 3, "March", IF(MONTH([Target Finish]@row) = 4, "April", IF(MONTH([Target Finish]@row) = 5, "May", IF(MONTH([Target Finish]@row) = 6, "June", IF(MONTH([Target Finish]@row) = 7, "July", IF(MONTH([Target Finish]@row) = 8, "August", IF(MONTH([Target Finish]@row) = 9, "September", IF(MONTH([Target Finish]@row) = 10, "October", IF(MONTH([Target Finish]@row) = 11, "November", IF(MONTH([Target Finish]@row) = 12, "December", " ")))))))))))) + YEAR([Target Finish]@row))

    If you want a space between the month and the year, you'll want to either insert + " " before the + YEAR or put a space before the closing quotation mark after each month (for example, "December ")


    Let me know if this works!

    Best,

    Heather

Answers

  • Heather Duff
    Heather Duff ✭✭✭✭✭✭
    Answer ✓
    Options

    Hi @Jennifer_Wirfel ,


    I may be oversimplifying this, but try this:

    =IF(ISBLANK([Target Finish]@row), " ", IF(MONTH([Target Finish]@row) = 1, "January", IF(MONTH([Target Finish]@row) = 2, "February", IF(MONTH([Target Finish]@row) = 3, "March", IF(MONTH([Target Finish]@row) = 4, "April", IF(MONTH([Target Finish]@row) = 5, "May", IF(MONTH([Target Finish]@row) = 6, "June", IF(MONTH([Target Finish]@row) = 7, "July", IF(MONTH([Target Finish]@row) = 8, "August", IF(MONTH([Target Finish]@row) = 9, "September", IF(MONTH([Target Finish]@row) = 10, "October", IF(MONTH([Target Finish]@row) = 11, "November", IF(MONTH([Target Finish]@row) = 12, "December", " ")))))))))))) + YEAR([Target Finish]@row))

    If you want a space between the month and the year, you'll want to either insert + " " before the + YEAR or put a space before the closing quotation mark after each month (for example, "December ")


    Let me know if this works!

    Best,

    Heather

  • Hi Heather,

    Thank you so much! I got that to work for me.

    Best,

    Jennifer

  • Heather Duff
    Heather Duff ✭✭✭✭✭✭
    Options

    @Jennifer_Wirfel Fantastic! Glad it worked. Have a great week!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!