# Can I extract the month or year from a date column for a formula...

Options
✭✭✭✭✭✭

...without creating separate columns for Month and Year like in this screenshot where formula for Verbal Agreement Month is =MONTH([Date of Verbal Agreement]@row) and formula for

Verbal Agreement Year is =YEAR([Date of Verbal Agreement]@row)

Thank you!

Tags:

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Not sure I follow. Can you elaborate?

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.

• ✭✭✭✭✭✭
Options

Hi Andrée,

An example of what I clearly did not state in my question... (sorry!)

I'm trying to count the number of rows that match this criteria:

• the Sales Status is "Verbal Agreement"
• the Verbal Agreement is in May 2022

Can I extract the month and year from the date column (showing 5/23/22 above) in a formula or do I need to create two columns (one for Month and one for Year) in order to create the formula. The formula below works but I wanted to try to avoid having to create additional columns.

=COUNTIFS({Sales Status}, "Verbal Agreement", {Verbal Agreement Month}, "5", {Verbal Agreement Year}, "2022")

Hopefully this clarifies my question? Thank you!

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!