French to English dates

MartinCregg

New Member
Joined
Feb 9, 2003
Messages
21
I have the function: =DATEVALUE("01-"&R9&"-"&"2004") in a cell. R9 contains the string "Apr". This function is copied into 12 other cells such that R9 becomes S9, T9 and so on up to AC9. Cells R9 to AC9 contain the first three characters for the 12 months of the year. Everything works great when the operating system language is English. I have a colleague running this in France and because the months are spelled differently the DATEVALUE function fails. Does anyone know how to get around this?

Martin
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
That doesn't work due to the fact that the US and European date formats are different. i.e. in US: mm-dd-yy, Eur: dd-mm-yy.
 
Upvote 0
Why does that matter if you use the DATE worksheet function...

=DATE(2004,R9,1)

...where R9 contains the month number.
 
Upvote 0
BTW, you can convert your English month abbreviations into a month number using....

=MATCH(ref,{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"},0)

...regardless of the default language.
 
Upvote 0

Forum statistics

Threads
1,214,815
Messages
6,121,715
Members
449,049
Latest member
THMarana

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