Formula =TEXT(2017-11-03, "mmm") returns "00", I was expecting "November"...

EmmaFia

New Member
Joined
Oct 16, 2015
Messages
5
Hi all,

This feels like a silly problem but I just cannot work it out... :eeek:

I want to display the month name in one cell by using the date in another cell. By googling I found out that the TEXT function should be able to this according to =TEXT(A1, "mmm"). However, when I apply the function I receive a double zero instead of the months name. It gives me the same result if I put the date in another cell or if I write it directly in the formula. What am I missing??

This is what I want:
A1: 2017-11-03 B1: November

This is what I get:
A1: 2017-11-03 B1: 00

Please help... =)
/Emma
[I am on a Windows 10 laptop with an Excel 365 subscription, language setting English.]
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
change the format of the cell B1 to be MMMM
then just use
=A1
the Date will now also be in B1 , but the cell format will provide how it is displayed

However , it works for me using your method
=TEXT(A1,"MMMM")

are you sure A1 isd actually a date
change the A1 cell format to Number
and see of the date changes to a number

the date 3rd Nov 2017 should change to 43042
 
Last edited:
Upvote 0
For TEXT(A1,"mmmm") to work A1 has to be an internal Excel date.
2017-11-03 as an internal Excel date is 43042

TEXT(43042,"mmmm") would produce November

Use

TEXT(DATEVALUE("2017-11-03"),"mmmm")
 
Upvote 0
What bothered me is how you got 00?? I cant replicate that no matter what i try.
 
Upvote 0
Thanks to everyone who responded. I just worked it out!!

Everything was in order with formats and so on, no issues there. The solution appeared when I switched to capital letters... It turns out that when I write "mmmm" I get "00", but when I write "MMMM" I get "November". Sometimes it is the small things...

Anyway, thanks a lot for your support!! :)
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top