Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Number of hours between now and selected date

I need a formula to calculate number of hours between data and time set in
the cell by function NOW() and a set date in the same format:

Example:

NOW() - return 29/07/2009 16:06:00
set date - 07/08/2009 06:00:00
result to be difference between the dates presented in hours
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Number of hours between now and selected date

Hi,

with the eralier date/time in A1 and the later in b1 try

=B1-A1

Format the cell as [hh]:mm

Mike

"Igor" wrote:

I need a formula to calculate number of hours between data and time set in
the cell by function NOW() and a set date in the same format:

Example:

NOW() - return 29/07/2009 16:06:00
set date - 07/08/2009 06:00:00
result to be difference between the dates presented in hours

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Number of hours between now and selected date

Thank you I tried, it returns only hours and minutes, however, days are
missed in the return

"Mike H" wrote:

Hi,

with the eralier date/time in A1 and the later in b1 try

=B1-A1

Format the cell as [hh]:mm

Mike

"Igor" wrote:

I need a formula to calculate number of hours between data and time set in
the cell by function NOW() and a set date in the same format:

Example:

NOW() - return 29/07/2009 16:06:00
set date - 07/08/2009 06:00:00
result to be difference between the dates presented in hours

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Number of hours between now and selected date

Hi,

If the days will never exceed 31 then you can get away with changing the
format to

dd:hh:mm

if it will/may exced 31 then use

=INT(B1-A1) & " " &TEXT(B1-A1,"hh:mm:ss")

Mike

"Igor" wrote:

Thank you I tried, it returns only hours and minutes, however, days are
missed in the return

"Mike H" wrote:

Hi,

with the eralier date/time in A1 and the later in b1 try

=B1-A1

Format the cell as [hh]:mm

Mike

"Igor" wrote:

I need a formula to calculate number of hours between data and time set in
the cell by function NOW() and a set date in the same format:

Example:

NOW() - return 29/07/2009 16:06:00
set date - 07/08/2009 06:00:00
result to be difference between the dates presented in hours

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Number of hours between now and selected date

If you want to show a number of hours beyond 24, [hh]:mm will show them.
Formatting as hh:mm (without the square brackets) would not.

If you want to return the number of hours as a decimal, then use
=(B1-A1)*24, and format as general or number, not as time.
--
David Biddulph

"Igor" wrote in message
...
Thank you I tried, it returns only hours and minutes, however, days are
missed in the return

"Mike H" wrote:

Hi,

with the eralier date/time in A1 and the later in b1 try

=B1-A1

Format the cell as [hh]:mm

Mike

"Igor" wrote:

I need a formula to calculate number of hours between data and time set
in
the cell by function NOW() and a set date in the same format:

Example:

NOW() - return 29/07/2009 16:06:00
set date - 07/08/2009 06:00:00
result to be difference between the dates presented in hours





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Number of hours between now and selected date

That's because you asked for the number of hours (see your subject). If you
wanted to know the number of days, you need to specify that. Responders here
will answer the question that's asked.

Regards,
Fred

"Igor" wrote in message
...
Thank you I tried, it returns only hours and minutes, however, days are
missed in the return

"Mike H" wrote:

Hi,

with the eralier date/time in A1 and the later in b1 try

=B1-A1

Format the cell as [hh]:mm

Mike

"Igor" wrote:

I need a formula to calculate number of hours between data and time set
in
the cell by function NOW() and a set date in the same format:

Example:

NOW() - return 29/07/2009 16:06:00
set date - 07/08/2009 06:00:00
result to be difference between the dates presented in hours


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 the number of hours in a date/time cell richardwo Excel Worksheet Functions 1 April 16th 09 11:48 AM
wages - multiply hours and minutes by number of hours worked Carol (Australia) Excel Discussion (Misc queries) 6 April 1st 07 01:16 AM
number of hours between two date/times TBA Excel Discussion (Misc queries) 7 January 27th 06 12:12 AM
How to project the due date according to a number of working hours Eric Excel Discussion (Misc queries) 8 October 24th 05 11:44 AM
How to project the due date according to a number of working hours Eric Excel Worksheet Functions 1 October 21st 05 03:03 PM


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