extracting month from a date column and returning blank where no date

Hi, I am trying to extract the month from a date column and for cells without a date in the same column to return a blank. I have used the expression below but it returns an incorrect argument message. Can anyone help, please?

=IFERROR(MONTH([Date CMI confirmation filed to matter]@row) = 1, "January", IF(MONTH([Date CMI confirmation filed to matter]@row) = 2, "February", IF(MONTH([Date CMI confirmation filed to matter]@row) = 3, "March", IF(MONTH([Date CMI confirmation filed to matter]@row) = 4, "April", IF(MONTH([Date CMI confirmation filed to matter]@row) = 5, "May", IF(MONTH([Date CMI confirmation filed to matter]@row) = 6, "June", IF(MONTH([Date CMI confirmation filed to matter]@row) = 7, "July", IF(MONTH([Date CMI confirmation filed to matter]@row) = 8, "August", IF(MONTH([Date CMI confirmation filed to matter]@row) = 9, "September", IF(MONTH([Date CMI confirmation filed to matter]@row) = 10, "October", IF(MONTH([Date CMI confirmation filed to matter]@row) = 11, "November", IF(MONTH([Date CMI confirmation filed to matter]@row) = 12, "December", ""))))))))))))

Many thanks

Ally

Answers

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi @ally.boardman__101__

    I hope you're well and safe!

    Try something like this.

    =IFERROR(IF(MONTH([Date CMI confirmation filed to matter]@row) = 1, "January", IF(MONTH([Date CMI confirmation filed to matter]@row) = 2, "February", IF(MONTH([Date CMI confirmation filed to matter]@row) = 3, "March", IF(MONTH([Date CMI confirmation filed to matter]@row) = 4, "April", IF(MONTH([Date CMI confirmation filed to matter]@row) = 5, "May", IF(MONTH([Date CMI confirmation filed to matter]@row) = 6, "June", IF(MONTH([Date CMI confirmation filed to matter]@row) = 7, "July", IF(MONTH([Date CMI confirmation filed to matter]@row) = 8, "August", IF(MONTH([Date CMI confirmation filed to matter]@row) = 9, "September", IF(MONTH([Date CMI confirmation filed to matter]@row) = 10, "October", IF(MONTH([Date CMI confirmation filed to matter]@row) = 11, "November", IF(MONTH([Date CMI confirmation filed to matter]@row) = 12, "December", "")

    Did that work/help?

    I hope that helps!

    Have a fantastic week & Happy New Year!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • Thank you for responding Andree, but unfortunately, it didn't work and have become resigned to seeing 'invalid data type' where cells do not contain a date.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!