Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Formatting dates with =TEXT()

Hello,

I have the following formula (AsOfDate is a named cell with a date on it, in
case it's not clear):

="As of "&TEXT(AsOfDate,"mm/dd/yyyy")

My coworker has Excel in Spanish, so since "year" is "año" in spanish, the
formula he needs to enter is:

="As of "&TEXTO(AsOfDate;"mm/dd/aaaa")

Excel does the TEXT to TEXTO formula conversion automatically, but since it
does not recognise the yyyy part, he gets an error.

Is there a way we can both see the date correctly formatted without having
to change the formula every time we send the spreadsheet over to each other?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Formatting dates with =TEXT()

I am sure this isn't the best way, but it works

=IF(ISNUMBER(--RIGHT("As of "&TEXT(AsOfDate,"mm/dd/aaaa"),4)),"As of
"&TEXT(AsOfDate,"mm/dd/aaaa"),"As of "&TEXT(AsOfDate,"mm/dd/yyyy"))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Idoia" wrote in message
...
Hello,

I have the following formula (AsOfDate is a named cell with a date on it,
in
case it's not clear):

="As of "&TEXT(AsOfDate,"mm/dd/yyyy")

My coworker has Excel in Spanish, so since "year" is "año" in spanish, the
formula he needs to enter is:

="As of "&TEXTO(AsOfDate;"mm/dd/aaaa")

Excel does the TEXT to TEXTO formula conversion automatically, but since
it
does not recognise the yyyy part, he gets an error.

Is there a way we can both see the date correctly formatted without having
to change the formula every time we send the spreadsheet over to each
other?

Thanks!



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
How do I convert dates stored as dates to text? diamunds Excel Discussion (Misc queries) 5 September 7th 07 05:38 PM
Formatting Dates MEAD5432 Excel Worksheet Functions 7 June 28th 07 08:04 PM
Conditional Formatting in for Cells with Mixed Dates and Text M. A. Newcomb Excel Worksheet Functions 1 May 8th 07 10:05 PM
Format text 'dates' to real dates Jacy Excel Worksheet Functions 4 July 24th 06 02:10 AM
Dates Not Formatting as Dates awacs Excel Worksheet Functions 4 September 13th 05 10:35 PM


All times are GMT +1. The time now is 11:44 AM.

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"