How to display the calendar month of a date

This guide will show you how to display the calendar month of a date using with an Excel formula
formula Friday

Formula Friday #01

Formula Fridays are short reads, spotlighting a single formula that you can start using straight away.

To display the calendar month of a date use the TEXT Function

Let’s say you are presented with a data set which shows the transaction date. But you need to provide a summary by month.

You could create a reference tab to list all the possible dates and then manually type in the months. Like this;

Or, you can let Excel do the work for you, with this formula:

=TEXT([reference cell],”MMMM”)

Much easier!

If your want an abbreviated version of the month the formula looks like this

=TEXT([reference cell],”MMM”)

Take the formula to the next level

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Now you’re comfortable extracting the month of a date. We can use the same logic to extract the year. 

Either 

=TEXT([reference cell],”YY”

or 

=TEXT([reference cell],”YYYY”)

Now we can combine them to extract the month and year.

=TEXT([reference cell],”MMM”)&”-”&TEXT([reference cell],”YY”)

=TEXT([reference cell],“MMMM”)&”-“&TEXT([reference cell],“YYYY”)

Ready to take your data analysis to the next level?

Get in touch today.

Like this post? You should see my newsletter.

Subscribe to the Excel & ME newsletter to get updates that will empower you to inform your business decisions with data.

One more thing

By using the TEXT Function. You are changing the format of the number from numerical to text. There is a really quick way to get around that by using the VALUE Function.

How did I do?

Hopefully, there have been a few cheers of achievement.

If it has left you wondering what else the TEXT function can do, to help with your data summaries. I have 3 additional formulas to share that you can start using right now.

Until next time

Ax

Related Articles from Excel & ME

How to use hlookup function blog post feature image

How to HLOOKUP

This is a step-by-step guide for how to use the HLOOKUP Function in Excel
IFERROR vs ISERROR blog post feature image

IFERROR vs ISERROR

A guide to the differences between IFERROR and ISERROR Excel Functions
How to use substitute function blog post feature image

How to use the Substitute Function

A step-by-step guide to how to use the SUBSTITUTE Function
How to use the IF function blog post feature image

Getting started with IF statements

An introductory guide to the IF Function
How to use vlookup function blog post feature image

How to VLOOKUP

This is a step-by-step guide for how to use the VLOOKUP Function in Excel
Improve margin forecasting with goal seek blog post feature image

Using Goal Seek to Forecast OTB Margin