# MONTH() Problem

#### calming.insanity

##### New Member
I am having problems getting the MONTH() function to work. no matter what date i reference, it comes up with january for some reason. Any ideas?

### Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

#### Gerald Higgins

##### Well-known Member
What data are you inputting between the brackets ?

#### Norie

##### Well-known Member
Well I don't see how it would come up with january since that function returns the month number.

What's the exact formula you are using?

#### calming.insanity

##### New Member
formula

i am using

Code:
``=month(b2)``

#### Gerald Higgins

##### Well-known Member

OK, so what's in B2 ?

#### Jonmo1

##### MrExcel MVP
Why don't you try

=TEXT(B2,"mmmm")

The reason month(b2) fails is because the Like Norie Said, the Month function returns a NUMBER Jan = 1, Feb = 2 etc...

so month(b2) will return a number from 1 - 12.

in excel date language,
1 = Jan 1 1900
2 = Jan 2 1900
3 = Jan 3 1900

etc...
So I'm guessing you have the cell this formula is in formatted as a date. That would make it Januaray probably..

#### calming.insanity

##### New Member
thanks

The reason month(b2) fails is because the Like Norie Said, the Month function returns a NUMBER Jan = 1, Feb = 2 etc...

so month(b2) will return a number from 1 - 12.

in excel date language,
1 = Jan 1 1900
2 = Jan 2 1900
3 = Jan 3 1900

that worked awesomely, i had forgotten about that fact....it's been a while since i had to use date info. I usually import excel files into business objects and let it sort it out. it has made me lazy.

Replies
2
Views
198
Replies
1
Views
351
Replies
5
Views
109
Replies
5
Views
919
Replies
0
Views
213

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,322
Messages
5,769,446
Members
425,546
Latest member
DisMissive

### 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.

### Which adblocker are you using?

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

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