# Month, Year Calculation Formula

Options

For example if I get Month, Year Value as (1, 2023) i,e Jan 2023 using =MONTH(TODAY()) - 11 + ", " + YEAR(TODAY()) formula what is the formula we have to use to get Previous Month, Year Value (12, 2022) i,e Dec 2022.

• ✭✭✭✭✭✭
Options

You would use something along the lines of these:

Current month:

=MONTH(TODAY()) + ", " + YEAR(TODAY())

Previous Month:

=IF(MONTH(TODAY()) = 1, 12, MONTH(TODAY()) - 1) + ", " + IF(MONTH(TODAY()) = 1, YEAR(TODAY()) - 1, YEAR(TODAY()))

• ✭✭✭✭✭✭
Options

You would use something along the lines of these:

Current month:

=MONTH(TODAY()) + ", " + YEAR(TODAY())

Previous Month:

=IF(MONTH(TODAY()) = 1, 12, MONTH(TODAY()) - 1) + ", " + IF(MONTH(TODAY()) = 1, YEAR(TODAY()) - 1, YEAR(TODAY()))

• Options

@Paul Newcome Thanks for the formula. By using this formula I get Values as below what is the way to get the Months is Text for Example (December, 2023; November, 2023; October, 2023 etc.......)

12, 2023

11, 2023

10, 2023

9, 2023

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Try something like this. (update/modify as needed)

=IF(Month@row <> "", IF(MONTH(Month@row) = 1, "01 January", IF(MONTH(Month@row) = 2, "02 February", IF(MONTH(Month@row) = 3, "03 March", IF(MONTH(Month@row) = 4, "04 April", IF(MONTH(Month@row) = 5, "05 May", IF(MONTH(Month@row) = 6, "06 June", IF(MONTH(Month@row) = 7, "07 July", IF(MONTH(Month@row) = 8, "08 August", IF(MONTH(Month@row) = 9, "09 September", IF(MONTH(Month@row) = 10, " 10 October", IF(MONTH(Month@row) = 11, "11 November", IF(MONTH(Month@row) = 12, "12 December")

Did that work/help?

I hope that helps!

Be safe, and have a fantastic weekend!

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.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!