Text formula: Months

zdinath

New Member
Joined
Aug 23, 2010
Messages
19
Hi,

Possible reasons why my Text formula to display month values as the actual text always outputs "Jan"?
e.g. =Text(1,"mmm") = Jan
=Text(2,"mmm") = Jan
=Text(3,"mmm") = Jan, etc

Any assistance will be appreciated.

Regards,
Z
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Perhaps

=CHOOSE(A1,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
 
Upvote 0
That works...thanks.
But still means having to type all the months in the formula (or having it in a range somewhere), which is what i was trying to avoid.

Its strange cos i used the Text method previously and it worked fine but somehow not getting it to work now (its working for days of the week...just not months?!?!?!)
 
Upvote 0
If you use

=Text(3,"mmm")

it is converting 3 January 1900 into a month, =Jan.
 
Upvote 0
The number 1 is 01 Jan 1900 when formatted as a date, and the number 2 is 02 Jan 1900. That's why you are getting Jan for both formulas. You can use these formulas:

=TEXT("1/"&1,"mmm")
=TEXT("1/"&2,"mmm")

assuming your date setting is dd/mm/yyyy.
 
Upvote 0
You 100% correct!!!
Jeez...i would never have thought about that. Thanks

I's now using:
=TEXT(DATE(,A2,),"mmm")

where A2 is the number i need to display in the month format.
Thanks for the help

Regards,
Z
 
Upvote 0
You 100% correct!!!
Jeez...i would never have thought about that. Thanks

I's now using:
=TEXT(DATE(,A2,),"mmm")

where A2 is the number i need to display in the month format.
Thanks for the help

Regards,
Z
If A2 is a number from 1 to 12...

=TEXT(A2*29,"mmm")
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,853
Members
452,948
Latest member
UsmanAli786

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