Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I calculate dates and times, w/answer of days & hours

How do I calculate dates and times, with answer of days & hours and then
answer of total hours in another cell.
For example 4-1-07 15:00 to 4-10-07 14:00. What is the number of days and
number of hours in this length of time? What is the total hours in this
length of time? I did look for the DateIf funtion in my Excel 2003 version, I
did not locate it.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default How do I calculate dates and times, w/answer of days & hours

You can use regular arithmetic on date/time cells in Excel. So the formula is:

=a2-a1

Custom format as dd hh:mm

If you want the number of hours, format as [hh]:mm

Also there's no DateIf function. There is a Datedif function in the Analysis
Toolpak addin, which may be what you are looking for.

--
Regards,
Fred


"Debby_Jo" wrote in message
...
How do I calculate dates and times, with answer of days & hours and then
answer of total hours in another cell.
For example 4-1-07 15:00 to 4-10-07 14:00. What is the number of days and
number of hours in this length of time? What is the total hours in this
length of time? I did look for the DateIf funtion in my Excel 2003 version, I
did not locate it.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How do I calculate dates and times, w/answer of days & hours

Are you sure that DateDif needs Analysis ToolPak, Fred? I didn't think it
did.

It isn't explained in Excel help, but there is information at
http://www.cpearson.com/excel/datedif.htm
--
David Biddulph

"Fred Smith" wrote in message
...
You can use regular arithmetic on date/time cells in Excel. So the formula
is:

=a2-a1

Custom format as dd hh:mm

If you want the number of hours, format as [hh]:mm

Also there's no DateIf function. There is a Datedif function in the
Analysis Toolpak addin, which may be what you are looking for.


"Debby_Jo" wrote in message
...
How do I calculate dates and times, with answer of days & hours and then
answer of total hours in another cell.
For example 4-1-07 15:00 to 4-10-07 14:00. What is the number of days and
number of hours in this length of time? What is the total hours in this
length of time? I did look for the DateIf funtion in my Excel 2003
version, I
did not locate it.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I calculate dates and times, w/answer of days & hours

Thank you very much, I believe this will do the trick.

"Fred Smith" wrote:

You can use regular arithmetic on date/time cells in Excel. So the formula is:

=a2-a1

Custom format as dd hh:mm

If you want the number of hours, format as [hh]:mm

Also there's no DateIf function. There is a Datedif function in the Analysis
Toolpak addin, which may be what you are looking for.

--
Regards,
Fred


"Debby_Jo" wrote in message
...
How do I calculate dates and times, with answer of days & hours and then
answer of total hours in another cell.
For example 4-1-07 15:00 to 4-10-07 14:00. What is the number of days and
number of hours in this length of time? What is the total hours in this
length of time? I did look for the DateIf funtion in my Excel 2003 version, I
did not locate it.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default How do I calculate dates and times, w/answer of days & hours

Good point. I thought it was part of ATP, but Chip's site doesn't mention
anything about it, so I'd have to assume it comes with regular Excel. I have ATP
installed on my system, so can't test it, and as you say, it isn't in Help.

--
Regards,
Fred


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Are you sure that DateDif needs Analysis ToolPak, Fred? I didn't think it
did.

It isn't explained in Excel help, but there is information at
http://www.cpearson.com/excel/datedif.htm
--
David Biddulph

"Fred Smith" wrote in message
...
You can use regular arithmetic on date/time cells in Excel. So the formula
is:

=a2-a1

Custom format as dd hh:mm

If you want the number of hours, format as [hh]:mm

Also there's no DateIf function. There is a Datedif function in the Analysis
Toolpak addin, which may be what you are looking for.


"Debby_Jo" wrote in message
...
How do I calculate dates and times, with answer of days & hours and then
answer of total hours in another cell.
For example 4-1-07 15:00 to 4-10-07 14:00. What is the number of days and
number of hours in this length of time? What is the total hours in this
length of time? I did look for the DateIf funtion in my Excel 2003 version,
I
did not locate it.







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
Calculate number of hours between dates and times excluding Weekends [email protected] Excel Discussion (Misc queries) 1 October 21st 06 02:16 AM
find days and hours between 2 sets of dates and times The Auditor Excel Discussion (Misc queries) 1 February 3rd 06 07:58 PM
How do I calculate the week day hours between 2 days Mickey Excel Discussion (Misc queries) 1 October 6th 05 12:29 AM
How to calculate days:Hours:Minutes: Hood Excel Worksheet Functions 1 January 17th 05 11:11 AM
How do I calculate difference in days & hours between two dates e. probi2 Excel Worksheet Functions 1 January 12th 05 03:59 PM


All times are GMT +1. The time now is 04:28 PM.

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

About Us

"It's about Microsoft Excel"