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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

xcellnoob

Board Regular
Joined
Apr 6, 2005
Messages
188

ADVERTISEMENT

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.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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:
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825

ADVERTISEMENT

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?
 

xcellnoob

Board Regular
Joined
Apr 6, 2005
Messages
188
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.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
=MONTH(C3) should work if C3 contains a date.
Book5
CDEF
39/16/20069
Sheet1
 

Forum statistics

Threads
1,136,427
Messages
5,675,789
Members
419,586
Latest member
RoteichA

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
Top