Odd formula result

Geoff Taylor

Active Member
Joined
Dec 11, 2006
Messages
257
Hi,
In Cell F16 I have a date, 01/08/2010 - (August 1st, 2010)

The formula MONTH(F16) returns the number 8, which is as it should.

The formula TEXT(MONTH(F16),"Mmm") returns "Jan", which is obviously incorrect. It should say "Aug"

What am I doing wrong?

I'm using Excel 2007
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
You just want:
=TEXT(F16,"Mmm")

by using the MONTH function as well, you are trying to convert the number 8 which, to Excel, would be 8/1/1900 as a date, to a month and therefore you get January.
 
Upvote 0
You just want:
=TEXT(F16,"Mmm")

by using the MONTH function as well, you are trying to convert the number 8 which, to Excel, would be 8/1/1900 as a date, to a month and therefore you get January.

Of course! Obvious when you spell it out. How silly of me.

Many thanks. You too, VoG
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

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