Converting Text Months to Actual Dates

Written by Allen Wyatt (last updated August 15, 2026)

1

Yasmin has a column that contains text month names, such as "January," "February," etc. She would like to convert these to actual date values for the last day in each month, such as 1/31/26, 2/28/26, etc. Yasmin wonders if this can be done with a formula, or if she needs to create a macro.

A macro is not necessary in this case; a formula will do just fine. In fact, there are multiple formulaic approaches that could be used. The easiest, however, is to use the EOMONTH function. For instance, the following will provide the desired result:

=EOMONTH("1 "&A1&" 2026",0)

What the formula does is to construct a string that contains a full date, such as "1 January 2026". The EOMONTH function expects a valid date serial number as the first parameter, but is only too happy to convert a text string to a serial number automatically. The second parameter, 0, indicates that you want the end-of-month date for whatever month is in the first parameter.

Speaking of months in the first parameter, you can make the formula a bit shorter by simply leaving off the day of the month, in this manner:

=EOMONTH(A1&" 2026",0)

To get results for a different year, just change the year references in the formula. If you want the results for months in the current year, then you can stick the day back on and drop the year, in this manner:

=EOMONTH("1 "&A1,0)

The absolute shortest version of using EOMONTH to do the conversion is the following:

=EOMONTH(A1&1,0)

Assuming A1 contains the month "January," then the formula constructs the string "January1" (notice there is no space in there) and uses that as the first parameter for EOMONTH. When you use this short version, the date returned is for the current year.

When you use one of the formulas above, the result is a date serial number. In order to see it as a date, you will need to apply a date format to the cell in which the formula is located.

If, for some reason, you have a version of Excel in which EOMONTH doesn't automatically convert a text date to a date serial number, you can always wrap the first parameter with the DATEVALUE function, in this manner:

=EOMONTH(DATEVALUE("1 "&A1&" 2026"),0)

Finally, be aware that any of these formulas will work just fine if you have a short version of the month name in cell A1. In other words, you could use "Oct" instead of "October" and the result would be exactly as desired.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13995) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Finding Changes by Editor

Creating a Macro to find changes made by different editors.

Discover More

Making the Show/Hide Setting Persistent

Word allows you to either display or hide non-printing characters that are in your document. This configuration setting ...

Discover More

Entering or Importing Times without Colons

Enter a time into a cell and you normally include a colon between the hours and minutes. If you want to skip that pesky ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Forcing Dates Forward

Want to push a date to some pre-defined day of the month? Here are some ways to force the issue.

Discover More

Converting UNIX Date/Time Stamps

If you import information generated on a UNIX system, you may need to figure out how to change the date/time stamps to ...

Discover More

Finding the Previous Work Day

Simple math will tell you what the previous day is (just subtract 1 from today's date). What if you want to know the date ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is seven minus 7?

2026-08-15 19:51:38

Alex Blakenburg

Warning: The shortest version being =EOMONTH("1 "&A1,0) is region / language dependent.
In Australia where we use dd/mm/yyyy, with January in A1, it returns 31/01/2001 ie 2001 not the current year (2026)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.