Yes, i did know about that but I actually needed to translate the cell to
text.
FYI, I've been messin' around too.... and what I found is rather
astonishing!!!
On the PC provided by my employer (using Office 2002), I've found that while
VBA in Access usually requires dates in MM/DD/YYYY despite of national
settings, in Excel it follows the national settings.... so no I have use for
VBA in this case! BUT DATEVALUE is more "flexible" than I thought and than
the help system suggests: in fact, feeding it with an ISO date (YYYY-MM-DD)
it works like a charm.... So, by using wisely DAY, MONTH and YEAR functions I
can alway send an ISO date to DATEVALUE... and at last get to the universal
internal format!!!! Cell formulas are no longer so easy to understand, but
what the hell! I won!
What's more astonishing, though, is that when I copied my worksheet (yeah,
i'm trying to write a universal, customizable calendar... with excel!) to my
home PC, where Office 2007 is installed.... I got a plethora of #VALUE?!!!
Even if the online help states that I should input date formatting in my
national format (i.e. gg/mm/aaaa), excel only accepts english constants....
so, when I changed all AAAAs to YYYYs and all GGGs to DDDs.... voilÃ*!
Everything was fine and dandy again!
When my project is finished I will upload it to MS-office templates and
hopefully it will get published..... so you will see what we were talking
about!!
Thank you for your help and inspiration!
Best Regards,
Andrea (a.k.a. zio69, a professional cobol expert!)
"Bernard Liengme" wrote:
> Just a thought: you do know you can format a cell with custom formats like
> "ddd" to show day of week? So in place of =TEXT(A1,"ddd") use =A1 and format
> this cell as "ddd" . Since these are not really text, they should get
> translated.
> --
> Bernard V Liengme
> Microsoft Excel MVP
> http://people.stfx.ca/bliengme
> remove caps from email
>
> "zio69" <(E-Mail Removed)> wrote in message
> news:19606014-870C-4A41-A9CF-(E-Mail Removed)...
> >I would like to manipulate dates in an excel worksheet (that is avoiding
> >VBA,
> > I guess i could accomplish my goal with VBA) in a way that would make my
> > worksheet work in every excel localization. Unfortunately I need to use
> > formatting such as TEXT(C1, "ddd") (short day name) which works fine in
> > english.... but will produce a cell containing ddd in french, italian,
> > german
> > and possibly many other locales. Unlike VBA, excel does not translate this
> > kind of strings....
> > Similarly, when I use DATEVALUE the date needs to be in mm-dd-yyyy format
> > in
> > US and UK, while it's dd-mm-yyyy in other countries; I guess VBA can take
> > care of that too, but....
> >
> > Is there a "universal" date format that is recognized by every
> > localization
> > and can therefore be used in every date-related function??
> >
> > Thanx for your input....
>
>
>