MONTH() Problem

calming.insanity

New Member
Joined
Apr 27, 2007
Messages
22
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.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,329
Office Version
  1. 365
Platform
  1. Windows
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?
 

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,116

ADVERTISEMENT

OK, so what's in B2 ?
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
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
Joined
Apr 27, 2007
Messages
22
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.
 
Master Excel Bundle

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.

Forum statistics

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