As the formula is copied down, the TEXT function extracts a month name from each date in column B. To extract the month name from a date as text, you can use the TEXT function with a custom number format like “mmmm”, or “mmm”. In the example shown, the formula in cell C4 is: The TEXT function converts values to text using the number format that you provide. Note that the date is lost in the conversion: only the text for the month name remains. To extract an abbreviated month name like “Jan”, “Feb”, etc. use a slightly different number format:
Display month name
If you only want to display a month name, you don’t need a formula – you can use a custom number format to format the date directly. Select the date and navigate to Format cells (Ctrl + 1 or Cmd +1), then select Custom and enter one of these custom formats: Excel will display only the month name, but it will leave the date value intact. You can also use a longer date format like this:
CHOOSE option
For more flexibility, you create your own month names with the CHOOSE function and MONTH function like this: Enter the month names you want to return (customized as you like) as values in CHOOSE, after the first argument, which is entered as MONTH(date). The MONTH function will extract a month number, and CHOOSE will use this number to return the “nth” value in the list. This works because MONTH returns a number 1-12 that corresponds to the month name. CHOOSE is more work to set up, but it is also more flexible, since it allows you to map a date to any values you want (i.e. you can use values that are custom, abbreviated, not abbreviated, in a different language, etc.).
Dave Bruns
Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.