Help with Month Formula

Hello I would like some help with the following formula. Due to showing on a graph. I would like the year to be first.

=[Finish Date Year]@row + " - " +, (IFERROR(IF(MONTH([Finish Date]@row) = 1, "01 January", IF(MONTH([Finish Date]@row) = 2, "02 February", IF(MONTH([Finish Date]@row) = 3, "03 March", IF(MONTH([Finish Date]@row) = 4, "04 April", IF(MONTH([Finish Date]@row) = 5, "05 May", IF(MONTH([Finish Date]@row) = 6, "06 June", IF(MONTH([Finish Date]@row) = 7, "07 July", IF(MONTH([Finish Date]@row) = 8, "08 August", IF(MONTH([Finish Date]@row) = 9, "09 September", IF(MONTH([Finish Date]@row) = 10, "10 October", IF(MONTH([Finish Date]@row) = 11, "11 November", IF(MONTH([Finish Date]@row) = 12, "12 December")))))))))))), "")

So starting with the iferror section It works fine. I added the

=[Finish Date Year]@row + " - " +

but I know I'm missing something

Best Answer

  • Darren Mullen
    Darren Mullen Community Champion
    Answer ✓

    @Jon Barto

    Initial issue I'm seeing is you have"=[Finish Date Year]@row + " - " +, "

    There should be no comma (,) after the + concatenation.

    So, it should be:

    =[Finish Date Year]@row + " - " + (IFERROR(IF(MONTH([Finish Date]@row) = 1, "01 January", IF(MONTH([Finish Date]@row) = 2, "02 February", IF(MONTH([Finish Date]@row) = 3, "03 March", IF(MONTH([Finish Date]@row) = 4, "04 April", IF(MONTH([Finish Date]@row) = 5, "05 May", IF(MONTH([Finish Date]@row) = 6, "06 June", IF(MONTH([Finish Date]@row) = 7, "07 July", IF(MONTH([Finish Date]@row) = 8, "08 August", IF(MONTH([Finish Date]@row) = 9, "09 September", IF(MONTH([Finish Date]@row) = 10, "10 October", IF(MONTH([Finish Date]@row) = 11, "11 November", IF(MONTH([Finish Date]@row) = 12, "12 December")))))))))))), "")

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!