month as number question

xcellnoob

Board Regular
Joined
Apr 6, 2005
Messages
188
I feel like a big dummy today.
I want to enter in cell C3 the month number. (Say 11 for November)
I want cell D3 to spit out "November"
For some reason no matter what number I put in C3, D3 always comes out as January???
Help?
BTW, formatting is all correct, so I don't think that's the issue.
Thanks for any help.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Also,
What if I have it the other way around where
C3 is entered as Jan-06.
I want D3 to return the number. (1)
I can do that easy enough, but now when I reference D3 in another formula it returns 37609 or something. How do I extract the number 1?
Thanks.
 
Upvote 0
Excel stores dates as serial numbers (In the 1900 date system (PC default) 1 is January 1, 1900 and so forth)
Multiplying the month by 29 makes the date in a month that applies to the number entered, see below example).

This also works in the 1904 date system.

We don't care about the year, because all we want is the month, so that doesn't matter:
 
Upvote 0
Also,
What if I have it the other way around where
C3 is entered as Jan-06.
I want D3 to return the number. (1)
I can do that easy enough, but now when I reference D3 in another formula it returns 37609 or something. How do I extract the number 1?
Thanks.

If C3 has a date then to extract the month number

=MONTH(C3)

is that what you mean?
 
Upvote 0
Excel stores dates as serial numbers (In the 1900 date system (PC default) 1 is January 1, 1900 and so forth)
Multiplying the month by 29 makes the date in a month that applies to the number entered, see below example).

This also works in the 1904 date system.

We don't care about the year, because all we want is the month, so that doesn't matter:

I see Senor.
Very nice. I love learning.
 
Upvote 0
=MONTH(C3) should work if C3 contains a date.
Book5
CDEF
39/16/20069
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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