Month() function doesn't work to convert January to 1

dngandbored

New Member
Joined
Nov 13, 2021
Messages
10
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi there, I tried to use the month() function to convert month (January, February etc) to numeric format in Excel. It doesn't work. I don't know what went wrong. Please see my screenshot below
I typed "March" in C4 and try to convert to "3" by using month( ) but I couldn't :( :cry:please help!!
1636858264747.png
 
In the image from post #4 it looks like you have incorrect quote marks - they need to be the 'vertical' quote marks not the sloped ones.

View attachment 51187

However, that does not explain the failure of the original formula that has no quote marks in it.
I tried again but still failed..
1636860460682.png


include space before 1 also failed..
1636860497986.png
 

Attachments

  • 1636860451877.png
    1636860451877.png
    8.3 KB · Views: 2
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
You still haven't got a space in front of the 1 in that formula in the image attached
 
Upvote 0
I would like to add the MONTH worksheet function is sensitive to locale.
With my currrent regional settings I get 4 valid results and 8 #VALUE! errors.

The OP seems to have other regional settings:

1636858264747.png
 
Upvote 0
I would like to add the MONTH worksheet function is sensitive to locale.
With my currrent regional settings I get 4 valid results and 8 #VALUE! errors.

The OP seems to have other regional settings:

View attachment 51192

I changed my language setting to English and this still doesn't work... I have no idea now:(
 
Upvote 0
With your Windows regional date settings set to English and your Excel date settings set to English, what do you see when you download the file in the link below?

 
Upvote 0
I don't know a lot about dealing with dates with different regional settings but perhaps this work-around might work?

21 11 14.xlsm
CD
4March3
Month
Cell Formulas
RangeFormula
D4D4=MATCH(LEFT(C4,3),{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"},0)
 
Upvote 0
.. or a bit shorter

21 11 14.xlsm
CD
4March3
Month
Cell Formulas
RangeFormula
D4D4=SEARCH(LEFT(C4,3),"..JanFebMarAprMayJunJulAugSepOctNovDec")/3
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,382
Members
448,889
Latest member
TS_711

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