Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Pull Month from Date in Excel: 3 Easy Methods

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To pull the month from a date in Excel, use the =MONTH() function to get the month as a number (1-12), or the =TEXT() function to get the month as a name (e.g., "January"). These methods allow you to isolate the month for sorting, filtering, or reporting without changing the original date value.

What You'll Need

  • A computer with Microsoft Excel installed (works on Windows, macOS, and Excel for the Web).
  • A dataset containing dates formatted as valid Excel date values.

Step-by-Step

Depending on whether you want the month as a number or a word, choose one of the following methods. Note that menu labels may differ slightly based on your version of Excel or regional settings.

Method 1: Extract Month as a Number (1-12)

  1. Click on the empty cell where you want the month number to appear (usually in the column next to your date).
  2. Type the formula =MONTH(.
  3. Click on the cell that contains the full date you want to reference (e.g., cell A2).
  4. Close the parenthesis and press Enter. The final formula should look like =MONTH(A2).
  5. To apply this to the rest of your list, click the small green square (fill handle) in the bottom-right corner of the cell and drag it down the column.

Method 2: Extract Month as a Name (January, Feb, etc.)

  1. Select the empty cell where you want the month name to appear.
  2. Type the formula =TEXT(.
  3. Click on the cell containing the date (e.g., A2).
  4. Type a comma, followed by the format code in quotation marks. For the full month name, use "mmmm". For a three-letter abbreviation, use "mmm".
  5. Close the parenthesis and press Enter. The final formula should look like =TEXT(A2, "mmmm").
  6. Drag the fill handle down to apply the formula to other rows.

Method 3: Change Display Only (Custom Formatting)

Use this method if you want the cell to still function as a full date for calculations, but only show the month name to the reader.

  1. Select the cell or range of cells containing your dates.
  2. Right-click the selected cells and choose Format Cells... (or press Ctrl + 1 on Windows).
  3. In the Number tab, select Custom from the Category list on the left.
  4. In the Type: field, delete any existing text and type mmmm for the full month name or mmm for the short version.
  5. Click OK. The date now appears as a month, but Excel still recognizes the full day and year in the background.

Common Mistakes

  • Using Text for Dates: If your "date" is actually typed as text (e.g., "Jan 1st 2024") rather than a recognized Excel date format, the =MONTH() formula will return a #VALUE! error.
  • Confusing Format with Value: Users often use Method 3 and think they have "extracted" the month. Remember that Custom Formatting only changes what you see; the underlying data is still the full date. If you need to sort by month name alphabetically, you must use Method 2.
  • Forgetting Quotation Marks: In the =TEXT() function, the format code (like "mmmm") must be inside double quotation marks. Omitting them will cause a formula error.

Tips

  • Dynamic Updates: Using formulas (Methods 1 and 2) ensures that if you change the original date, the month will update automatically.
  • Sorting Data: If you use =TEXT(A2, "mmmm"), Excel will sort those months alphabetically (April, August, December) rather than chronologically. To sort chronologically, use the =MONTH() function and sort by the resulting numbers.
  • Combining Month and Year: If your data spans multiple years, pulling just the month can be confusing. Use =TEXT(A2, "mmmm yyyy") to keep the month and year together.

Troubleshooting

If the formula does not produce the expected result, try these steps in order:

  1. Check Date Formatting: If you see #VALUE!, your date might be stored as text. Select the cell, go to the Home tab, and change the format dropdown from "Text" to "Date." If that doesn't work, you may need to use the "Text to Columns" feature under the Data tab to convert text to dates.
  2. Check for Number Formatting: If you use =MONTH() and the result looks like a weird date (e.g., 1/1/1900) instead of a number like "1", the cell is formatted as a date. Change the cell format to General or Number via the Home tab.
  3. Verify Cell References: Ensure your formula is pointing to the correct cell. If you dragged the formula down, check that the cell reference (e.g., A2, A3, A4) is updating correctly.

Frequently Asked Questions

Can I get the month as a number but keep the leading zero (e.g., 01 instead of 1)?

Yes. Use the formula =TEXT(A2, "mm"). This converts the month number into a two-digit text string.

Does the MONTH function work in Google Sheets?

Yes, the =MONTH() and =TEXT() functions work identically in Google Sheets as they do in Microsoft Excel.

How do I pull the month from a date that is written as text?

If the date is text, you must first convert it using =DATEVALUE(cell) to turn it into a serial number that Excel recognizes, then wrap that in the MONTH function: =MONTH(DATEVALUE(A2)).

Why does my month show up as "January" when the date is in 1900?

This happens when you use the =MONTH() function but the cell is formatted as a "Date." Excel sees the result "1" and interprets it as the first day of its calendar (January 1, 1900). Change the cell format to "General."

Is there a way to do this without formulas?

Yes, if you have a table of data, you can use Flash Fill. Type the month name manually for the first two rows, then press Ctrl + E. Excel will detect the pattern and fill the rest of the column for you.