By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Quickly Extract Month Values in Excel with the MONTH Function | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Quickly Extract Month Values in Excel with the MONTH Function | HackerNoon
Computing

Quickly Extract Month Values in Excel with the MONTH Function | HackerNoon

News Room
Last updated: 2025/04/21 at 12:21 PM
News Room Published 21 April 2025
Share
SHARE

Examples of using Excel MONTH FunctionExamples of using Excel MONTH Function

MONTH Function: A Brief

The MONTH function in Excel is used to extract the month number (1 to 12) from a given input date. The MONTH function will return a #VALUE! error if the input is not a valid Excel date. It will return a #NUM! error if the input number is outside the acceptable range for Excel date values.

Objective

Value Returned by function

Aim to return a valid month as number

MONTH Function will extract the month from the given input date and return the month number as the numerical value lies between 1-12!

MONTH Function: A Syntax

=MONTH(date)
  • date: This is the date from which you want to extract the month. It can be a cell reference containing a date, or a date written directly inside the formula using the DATE function.

This MONTH Function was introduced in the Excel 2003 version.

Basic Example of using MONTH Function:

In the below example, I’ve covered most of the common ways to use the MONTH function are shown using different types of input values.

Using MONTH Function for different scenariosUsing MONTH Function for different scenarios

S.no

Input Date

Output Result

Comments

1

10 March 2025

3

Valid date, returns month number

2

21 July 2023

7

Ignores the Time and extracts month value from the date

3

01 December 2024

12

Given date is a leap year, still extracts the month value

4

This is a Text

#VALUE!

The input is Text not a date – causes #VALUE! error

5

-999999

#NUM!

The input Number is too large for valid date

Example Explanation:

  • First example: The function extracts the month number from a valid date. March is the 3rd month, so it returns numerical value 3.
  • Second example: Even if the input includes a time, the MONTH function looks only at the date part. Since the date is in July, it returns 7.
  • Third example: The input date falls in a leap year, but this does not affect how the month is extracted. Since it’s December, the function returns 12.
  • Fourth example: The input is plain text that does not follow a valid date format. So, the MONTH function returns a #VALUE! error.
  • Fifth example: The input is a negative number too low to be a valid Excel date. In this case, the MONTH function returns a #NUM! error.

Using MONTH Function with other Nested Functions:

The following examples explains, how can we use the MONTH function with other Excel functions for multiple scenarios.

Using MONTH Function with other Nested FunctionsUsing MONTH Function with other Nested Functions

Input Date : 10-03-2025

S.no

Used Nested Functions

Scenarios

Output

Formula Used

Comments

1

TODAY, MONTH

Get the current month number

4

=MONTH(TODAY())

Returns the month of today’s system date

2

TEXT, MONTH

Convert to month name using input

March

=TEXT(C3,”mmmm”)

Returns full month name from the date in C2

3

IF, MONTH

Check if input month is March

Yes

=IF(MONTH(C3)=3,”Yes”,”No”)

Returns Yes if input month is March

4

DATE, MONTH

Extract month from custom date

12

=MONTH(DATE(2025,12,25))

Hardcoded date used inside formula, extracts month number

5

EDATE, MONTH

Add 2 months to input and get month

5

=MONTH(EDATE(C3,2))

Input March month + 2 months = May = 5

6

NOW, MONTH

Get month from current date and time

4

=MONTH(NOW())

Works the same even with time portion

Example Explanations:

  • First one:
    • This formula uses TODAY() inside MONTH() to return the current month number based on your system’s date. Since TODAY() always fetches the present date, MONTH(TODAY()) gives you the month part of that date.
  • Second one:
    • The TEXT() function is used here with a date cell to convert the date into a full month name like “March“. It doesn’t return the month number, but a readable month name, which is useful for headings or summaries.
  • Third one:
    • This formula checks if the month in cell C3 is equal to 3 (March). If true, it returns “Yes”, otherwise it shows “No”. This is useful for setting up conditions based on specific months in your data.
  • Fourth one:
    • Using the DATE() function, this formula creates a specific date, December 25, 2025. Then, MONTH() extracts the month part from that date, returning 12 for December.
  • Fifth one:
    • The EDATE() function moves the given date forward by 2 months. If the original date is in March (month 3), adding 2 months brings it to May (month 5), which MONTH() then returns.
  • Sixth one:
    • The NOW() function gives the current date and time. Even though the time is included, MONTH(NOW()) will still extract only the month number from the full timestamp.

That’s it. This tutorial is originally published on How to Use Excel MONTH Function?

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article With a lovely discount on Amazon, the Galaxy Tab S9 is sweeter than a chocolate Easter egg
Next Article Ditch the K-Cups for Good With These Great Coffee Makers
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Acer’s first connected ring hides an asset
Mobile
5 shows like ‘Forever’ to stream right now
News
Lloyds and Nationwide-backed financial gen AI model launches – UKTN
News
Malicious PyPI Packages Exploit Instagram and TikTok APIs to Validate User Accounts
Computing

You Might also Like

Computing

Malicious PyPI Packages Exploit Instagram and TikTok APIs to Validate User Accounts

6 Min Read
Computing

2023 TechNode Content Team Annual Insights: A Whole Year Surprised by Altman · TechNode

9 Min Read
Computing

Tesla exports materials from China for 4680 battery production in Texas: report · TechNode

1 Min Read

👨🏿‍🚀 Daily – MaxAB-Wasoko acquires Fatura |

3 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?