ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculating how many hours between one date and another (https://www.excelbanter.com/excel-discussion-misc-queries/60775-calculating-how-many-hours-between-one-date-another.html)

Samwar

Calculating how many hours between one date and another
 
I have four cells in a spreadsheet

start date
start time
end date
end time

I need to calculate in hours the difference between the start date and time
and the end date and time. This is probably quite easy, but I can't find the
way to do it. Unfortunately the cells have to remain seperate

bpeltzer

Calculating how many hours between one date and another
 
Subtract as normal (start date + start time - end date - end time) and
multiply the result by 24. You'll probably have to format the resulting
number.

"Samwar" wrote:

I have four cells in a spreadsheet

start date
start time
end date
end time

I need to calculate in hours the difference between the start date and time
and the end date and time. This is probably quite easy, but I can't find the
way to do it. Unfortunately the cells have to remain seperate


Gary''s Student

Calculating how many hours between one date and another
 
=(startdate+starttime)-(enddate+endtime) and format the result something like
hhh.
--
Gary''s Student


"Samwar" wrote:

I have four cells in a spreadsheet

start date
start time
end date
end time

I need to calculate in hours the difference between the start date and time
and the end date and time. This is probably quite easy, but I can't find the
way to do it. Unfortunately the cells have to remain seperate


Niek Otten

Calculating how many hours between one date and another
 
Make the format [h] instead

--
Kind regards,

Niek Otten

"Gary''s Student" wrote in message
...
=(startdate+starttime)-(enddate+endtime) and format the result something
like
hhh.
--
Gary''s Student


"Samwar" wrote:

I have four cells in a spreadsheet

start date
start time
end date
end time

I need to calculate in hours the difference between the start date and
time
and the end date and time. This is probably quite easy, but I can't find
the
way to do it. Unfortunately the cells have to remain seperate





All times are GMT +1. The time now is 08:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com