MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (2024)

MONTH Function in Excel

The MONTH function in Excel is a date function used to find the month for a given date in a date format. This function takes an argument in a date format, and the result is in integer format. This function's value is in the range of 1-12 as there are only twelve months in a year. The method to use this function is as follows =MONTH( serial_number). The argument provided to this function should be in a recognizable date format of Excel.

For example, =MONTH(A1) - returns the month of a date in A1.

=MONTH(DATE(2020,6,10)) - returns 6 corresponding to June.

Also, =MONTH("10-June-2020") - returns number 6 too.

The MONTH function in Excel gives the month from its date. It returns the month number ranging from 1 to 12.

Table of contents
  • MONTH Function in Excel
    • MONTH Formula in Excel
    • MONTH in Excel - Illustration
    • How to Use MONTH Function in Excel?
    • MONTH in Excel Example #1
    • MONTH in Excel Example #2
    • MONTH in Excel Example #3
    • MONTH in Excel Example #4
    • MONTH in Excel Example #5
    • Things to remember about a MONTH in Excel
    • MONTH Excel Function Video
    • Recommended Articles

MONTH Formula in Excel

Below is the MONTH Formula in Excel.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (1)

Or

MONTH( date )

MONTH in Excel - Illustration

Suppose a date (10 August, 18) is given in cell B3. You want to find the month in Excel of the given date in numbers.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (2)

You can use the MONTH formula in Excel given below:

= MONTH (B3)

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (3)

Press the "Enter" key. The MONTH function in Excel will return 8.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (4)

You can also use the following MONTH formula in Excel:

= MONTH (“10 Aug 2018”)

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (5)

Press the "Enter" key. The MONTH function will also return the same value.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (6)

The date 10 Aug 2018 refers to a value 43322 in Excel. You can also use this value directly as input to the MONTH function. The MONTH formula in Excel would be:

= MONTH (43322)

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (7)

MONTH function in Excel will return 8.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (8)

Alternatively, you can also use the date in another format:

= MONTH (“10-Aug-2018”)

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (9)

Excel MONTH function will also return 8.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (10)

Let us look at examples of where and how to use the MONTH function in Excel in various scenarios.

MONTH Excel Function Video

How to Use MONTH Function in Excel?

The MONTH function in Excel is very simple and easy to use. Let us understand the working of a MONTH in excel by some examples.

serial_number: a valid date for which the month number is to be identified

The input date must be a valid Excel date. The dates in Excel are stored as serial numbers. For example, the date Jan 1, 2010, equals the serial number 40179 in Excel. The MONTH formula in Excel takes as input both the date directly or the serial number of the date. It is to be noted here that Excel does not recognize dates earlier than 1/1/1900.

Returns

The MONTH function in Excel always returns a number ranging from 1 to 12. This number corresponds to the month of the input date.

MONTH in Excel Example #1

Suppose you have a list of dates given in the cells B3: B7, as shown below. You want to find the month name of each of these given dates.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (11)

You can do so using the following MONTH formula in Excel:

= CHOOSE ((MONTH(B3)), “Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”)

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (12)

MONTH (B3) will return 1.

CHOOSE (1, …..) will choose the 1stoption of the given 12, Jan here.

So, the MONTH function in Excel will return Jan as a result.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (13)

Similarly, you can drag it for the rest of the cells.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (14)

Alternatively, you can use the following MONTH formula in Excel:

= TEXT (B3, “mmm”)

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (15)

The MONTH function will return Jan as a result.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (16)

MONTH in Excel Example #2

Suppose you have month names (say in “mmm” format) given in cells B4: B15.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (17)

Now, you want to convert these names to the month in numbers.

You can use the following MONTH in Excel:

= MONTH ( DATEVALUE( B4 & ” 1”)

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (18)
MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (19)

For Jan, the MONTH in Excel will return 1. For Feb, it will return 2 and so on.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (20)

MONTH in Excel Example #3

Suppose you have a list of holidays given in cells B3: B9 in a date-wise manner, as shown below.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (21)

Now, you want to calculate the number of holidays each month. To do so, you can use the following MONTH formula in Excel for the first month given in E4:

= SUMPRODUCT( --( MONTH( $B$4:$B$16 ) = MONTH( DATEVALUE( E4 & " 1")) ) )

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (22)

Then, drag it to the rest of the cells.

Let us look at the MONTH function in Excel detail:

  • MONTH( $B$4:$B$16 ) will check the month of the dates provided in cell range B4:B16 in a number format. The MONTH function in Excel will return {1; 1; 2; 3; 4; 5; 6; 6; 8; 9; 10; 11; 12}
  • MONTH( DATEVALUE( E4 & ” 1″) will give the month in number corresponding to cell E4 (see example 2). The MONTH function in Excel will return 1 for January
  • SUMPRODUCT in Excel (– (…) = (..) ) will match the month given in B4:B16 with January (=1) and will add one each time when it is true.

Since January appears twice in the given data, the MONTH function in Excel will return 2.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (23)

Similarly, you can do for the rest of the cells.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (24)

MONTH in Excel Example #4

Suppose you have sales data for the past two years. The data was collected on the last date of the month. The data was manually entered, so there could be a mismatch in the data. You should compare the sales between 2016 and 2017 for each month.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (25)

To check if the months are the same and then compare the sales, you can use the MONTH formula in Excel:

=IF( (MONTH(B4)) = (MONTH(D4) ), IF( E4 > C4, “Increase”, “Decrease” ), “Month-Mismatch” )

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (26)

For the first entry, the MONTH function in Excel will return “Increase.”

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (27)

Let us look at the MONTH in Excel in detail:

If the MONTH of B4 (for 2016) is equal to the MONTH given in D4 (for 2017),

  • The MONTH function in Excel will check if the sales for the given month in 2017 are greater than that in 2016.
    • If it is greater, it will return “Increase.”
    • Else, it will return to “Decrease.”

If the MONTH of B4 (for 2016) is not equal to the MONTH given in D4 (for 2017),

  • The MONTH function in Excel will return “Mismatch.”

Similarly, you can do for the rest of the cells.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (28)

You could also add another condition to check if the sales are equal and return “Constant.”

MONTH in Excel Example #5

Suppose you work in your company's sales department and have date-wise data of how many products were sold on a particular date for the previous year, as shown below.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (29)

Now, you want to club the number of products monthly. To do so, you use the following MONTH formula in Excel:

= SUMPRODUCT(-- ( EXACT( F4, MONTH( $B$4:$B$17 ))), $C$4:$C$17 )

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (30)

For the first cell, the MONTH function in Excel will return 16.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (31)

Then, drag it to the rest of the cells.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (32)

Let us look at the MONTH in Excel in detail:

= SUMPRODUCT(-- ( EXACT( F4, MONTH( $B$4:$B$17 ))), $C$4:$C$17 )

  • MONTH( $B$4:$B$17 ) will give the month of the cells in B4: B17. MONTH function in Excel will return a matrix {2; 8; 3; 2; 1; 7; 2; 5; 9; 6; 12; 11; 4; 10}
  • EXACT( F4, MONTH( $B$4:$B$17 )) will match the month in F4 ( 1 here) with the matrix and will return another matrix with TRUE when it is a match or FALSE otherwise. For the 1st month, it will return {FALSE; FALSE; FALSE; FALSE; TRUE; FALSE; FALSE; FALSE; FALSE; FALSE; FALSE; FALSE; FALSE; FALSE}
  • SUMPRODUCT (– (..), $C$4:$C$17) will sum the values in C4:C17 when the corresponding value in the matrix is “TRUE.”

The MONTH function in Excel will return 16 for January.

MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (33)

Things to remember about a MONTH in Excel

  • The MONTH function returns the month of the given date or serial number.
  • Excel MONTH function is given #VALUE! Error when it cannot recognize the date.
  • The Excel MONTH function accepts dates only after 1 Jan 1900. It will provide the #VALUE! Error when the input date is earlier than 1 Jan 1900.
  • The MONTH function in Excel returns the month in number format only. Therefore, its output is always a number between 1 and 12.

Recommended Articles

This article is a guide to MONTH Function in Excel. We discuss the MONTH formula in Excel and how to use the MONTH function, along with Excel examples and downloadable Excel templates. You may also look at these useful functions in Excel: -

  • EDATE Function in Excel
  • VBA MONTH
  • FREQUENCY Excel Function
MONTH in Excel (Formula, Example) | How to Use MONTH Excel Function (2024)
Top Articles
What is Personal Banking & Why You Need An Account?
Tax Tips Every Nurse Should Know | Joyce University
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Selly Medaline
Latest Posts
Article information

Author: Zonia Mosciski DO

Last Updated:

Views: 6087

Rating: 4 / 5 (51 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Zonia Mosciski DO

Birthday: 1996-05-16

Address: Suite 228 919 Deana Ford, Lake Meridithberg, NE 60017-4257

Phone: +2613987384138

Job: Chief Retail Officer

Hobby: Tai chi, Dowsing, Poi, Letterboxing, Watching movies, Video gaming, Singing

Introduction: My name is Zonia Mosciski DO, I am a enchanting, joyous, lovely, successful, hilarious, tender, outstanding person who loves writing and wants to share my knowledge and understanding with you.