Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
IanC
 
Posts: n/a
Default TEXT function to format a date in English & French

I have cells formatted with TEXT and the format_text "mmmm yyyy".
Unfortunately this does not work in Europe as they expect (say in France)
"mmmm aaaa". Is there any way around this to use TEXT in more than 1
language?
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
the only solution I have for this:
- create an empty sheet which stores some language dependent information
(you can hide this)
- e.g. in row 2 enter the different date formats per language (with row 1 as
heading row for the language name)
- in X1 enter the current language name (maybe use a VBA function to
determine the current language setting automatically)

Now create a formula such as:
=TEXT(A1,HLOOKUP('language_sheet'!X1,'language_she et'!A1:F20,2,0))


"IanC" wrote:

I have cells formatted with TEXT and the format_text "mmmm yyyy".
Unfortunately this does not work in Europe as they expect (say in France)
"mmmm aaaa". Is there any way around this to use TEXT in more than 1
language?

  #3   Report Post  
IanC
 
Posts: n/a
Default

Absolutely brilliant. Thank you.

"Frank Kabel" wrote:

Hi
the only solution I have for this:
- create an empty sheet which stores some language dependent information
(you can hide this)
- e.g. in row 2 enter the different date formats per language (with row 1 as
heading row for the language name)
- in X1 enter the current language name (maybe use a VBA function to
determine the current language setting automatically)

Now create a formula such as:
=TEXT(A1,HLOOKUP('language_sheet'!X1,'language_she et'!A1:F20,2,0))


"IanC" wrote:

I have cells formatted with TEXT and the format_text "mmmm yyyy".
Unfortunately this does not work in Europe as they expect (say in France)
"mmmm aaaa". Is there any way around this to use TEXT in more than 1
language?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pasting data from a website changes text to date stebro Excel Discussion (Misc queries) 8 August 12th 06 08:39 PM
Date format collapses diagram Richard H Excel Discussion (Misc queries) 3 December 14th 04 11:08 PM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 06:01 PM
How to write a "Text" or date custom format FBB Excel Worksheet Functions 1 November 28th 04 01:10 AM


All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"