#1   Report Post  
Posted to microsoft.public.excel.misc
Matt
 
Posts: n/a
Default date formats

I have a cell that works out how many days someone has worked in my company
for. However, I'm trying to change the format of that cell so rather than it
saying, for example 743 as days, I want it to show as years, months, days i.e
2:01:15

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph
 
Posts: n/a
Default date formats

"Matt" wrote in message
...
I have a cell that works out how many days someone has worked in my company
for. However, I'm trying to change the format of that cell so rather than
it
saying, for example 743 as days, I want it to show as years, months, days
i.e
2:01:15


=DATEDIF(A1,A2,"y")&":"&DATEDIF(A1,A2,"ym")&":"&DA TEDIF(A1,A2,"md")

.... (but for inputs of 0 and 743 it gives 2:0:12, not your 2:01:15).
--
David Biddulph


  #3   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default date formats

See

http://www.cpearson.com/excel/datedif.htm

--
Kind regards,

Niek Otten

"Matt" wrote in message ...
|I have a cell that works out how many days someone has worked in my company
| for. However, I'm trying to change the format of that cell so rather than it
| saying, for example 743 as days, I want it to show as years, months, days i.e
| 2:01:15
|
| Any ideas?


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 create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Calculate 1st of month date from existing date. Jim15 Excel Discussion (Misc queries) 1 January 9th 06 10:05 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Date formats Penco Excel User Excel Discussion (Misc queries) 1 November 28th 04 09:11 AM


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