Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jenhow
 
Posts: n/a
Default DATE.DIFF results in French

I am use the DATE.DIFF function to return the time elapsed between two dates
and the results come back in years, months, days. But not in English, the
results say
"1 an 2 mois 3 jour". Is there any way to fix this?

Thanks.
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi jenhow

Maybe you use a function from a Add-in ?

Try this one from Norman Harker with the dates in B5 and C5
You can add text yourself

=DATEDIF(B5,C5,"y") & " y " & DATEDIF(B5,C5,"ym") & " m " & DATEDIF(B5,C5,"md") & " d"

--
Regards Ron de Bruin
http://www.rondebruin.nl



"jenhow" wrote in message ...
I am use the DATE.DIFF function to return the time elapsed between two dates
and the results come back in years, months, days. But not in English, the
results say
"1 an 2 mois 3 jour". Is there any way to fix this?

Thanks.



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 15 Feb 2005 09:47:02 -0800, jenhow
wrote:

I am use the DATE.DIFF function to return the time elapsed between two dates
and the results come back in years, months, days. But not in English, the
results say
"1 an 2 mois 3 jour". Is there any way to fix this?

Thanks.


DATE.DIFF is not an Excel function.

If you are using Longre's morefunc.xll add-in, then you should address your
questions to him directly.


It might be possible to nest that user function in a SUBSTITUTE worksheet
function, though.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(DATE.DIFF(A1,A2, 3),"an","year"),"moi","month"),"jour","day")

However, this will result in months always being plural. You could certainly
test for months being equal to one, and strip off the "s" if it is.

It might be easier to use Excel's DateDif function:

=DATEDIF(A1,A2,"y")&IF(DATEDIF(A1,A2,"y")=1," yr "," yrs ")&
DATEDIF(A1,A2,"ym")&IF(DATEDIF(A1,A2,"ym")=1," month "," months ") &
DATEDIF(A1,A2,"md") & IF(DATEDIF(A1,A2,"md")=1," day", " days")



--ron
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
Equation giving unexpected results Mike K Charts and Charting in Excel 2 January 27th 05 02:58 PM
I want the results of a formula to show in cell, NOT THE FORMULA! ocbecky Excel Discussion (Misc queries) 4 December 10th 04 08:39 PM
Banding Results Ben Hur Excel Discussion (Misc queries) 2 December 3rd 04 10:19 PM
displaying results and not formulas Marc S Excel Worksheet Functions 2 November 11th 04 01:34 PM
?odd results for =left(F#,2) Steven Stadelhofer Excel Worksheet Functions 1 November 4th 04 09:54 PM


All times are GMT +1. The time now is 01:17 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"