Return correct month in text

Dryver14

Well-known Member
Joined
Mar 22, 2010
Messages
2,396
Hi all,

I'm in the UK so 1st march is 01/03/18 ...everyone else is wrong!

Including excel it seems. I am using =text(month(A5),"mmmm") which is returning January.

Strangely =month(A5) returns 3, its the text that's converting it to 1

I've tried =text(month((A5)+3,"mmmm") still produces January

Any Ideas?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
You dont use the month bit. You are saying =text(3,"mmmm"). 3 is a valid date. 3rd January 1900 hence January being returned
 
Upvote 0
Hi all,

I'm in the UK so 1st march is 01/03/18 ...everyone else is wrong!

Including excel it seems. I am using =text(month(A5),"mmmm") which is returning January.

Strangely =month(A5) returns 3, its the text that's converting it to 1

I've tried =text(month((A5)+3,"mmmm") still produces January
If your cells have a number followed by an ordinal designation followed by a space followed by the month name, all as text, and you want the month name from the cell, this formula should work...

=TRIM(MID(A1,5,10))
 
Upvote 0
Hi,

I think you don't need month in =text(month(A5),"mmmm") , see sample below:


Book1
ABCDE
101/03/20183MarchJanuary
Sheet34
Cell Formulas
RangeFormula
C1=MONTH(A1)
D1=TEXT(A1,"mmmm")
E1=TEXT(MONTH(A1),"mmmm")
 
Upvote 0
U need to add an "artificial" date... like the following formula

=TEXT(A5&"/1/1901","mmmm")

it says 3/1/1901, with the 3 being the value in A5, and adds the rest, so that the text function will read it correctly.
 
Upvote 0
I don't have that situation Rick,

People are inputting a date in format 01/01/18 and from that I have a cell below to get the month name for an indirect formula where the sheet tabs are month names
 
Upvote 0
Dave,

I did try your formula as it seemed like it may come in useful at some time.

it generated the following 43160/1/1901
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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