PC Review


Reply
Thread Tools Rate Thread

How to calculate the difference between two different times.

 
 
Highbury 1
Guest
Posts: n/a
 
      24th Feb 2009
How to tell the time?

I have an Excel 2007 workbook that I require to be able to ‘countdown’ the
time remaining until the scheduled start time of a market event.

I require that the function returns a value dependent upon the amount of
time remaining.

Time Cell Return
Start Time - 10+ Minutes A
Start Time - 5 to 10 Minutes B
Start Time - 2 to 5 Minutes C
Start Time - Under 2 Minutes D

I require assistance with both the formula to use and any relevant
information regarding the cell format / data type for cells B3 and B4 in the
example below

The time format I have used is HH:MM:SS

In the example below the time remaining is calculated as 7 minutes & 25
seconds, I need to know how to calculate this time difference and how to
convert that into seconds (445 Seconds) for use in the Vlookup function
(D1..E4) to return the letter B


A B C D E
1 Current Time: 13:52:35 600 A
2 Sheduled Start: 14:00:00 300 B
3 Time Remaining: 00:07:25 120 C
4 Return: B 0 D


Many thanks for your help
 
Reply With Quote
 
 
 
 
Luke M
Guest
Posts: n/a
 
      24th Feb 2009
Time remaining:
=(B2-B1)*86400
[86400 = 60 seconds * 60 minutes * 24 hr, thus giving you seconds as an
integer]
You should format the cell as number probably

You need to swith the order of your table to go from 0 to 600 for lookup
functions to work.
Return formula:
=LOOKUP(B3,D1:E4)

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Highbury 1" wrote:

> How to tell the time?
>
> I have an Excel 2007 workbook that I require to be able to ‘countdown’ the
> time remaining until the scheduled start time of a market event.
>
> I require that the function returns a value dependent upon the amount of
> time remaining.
>
> Time Cell Return
> Start Time - 10+ Minutes A
> Start Time - 5 to 10 Minutes B
> Start Time - 2 to 5 Minutes C
> Start Time - Under 2 Minutes D
>
> I require assistance with both the formula to use and any relevant
> information regarding the cell format / data type for cells B3 and B4 in the
> example below
>
> The time format I have used is HH:MM:SS
>
> In the example below the time remaining is calculated as 7 minutes & 25
> seconds, I need to know how to calculate this time difference and how to
> convert that into seconds (445 Seconds) for use in the Vlookup function
> (D1..E4) to return the letter B
>
>
> A B C D E
> 1 Current Time: 13:52:35 600 A
> 2 Sheduled Start: 14:00:00 300 B
> 3 Time Remaining: 00:07:25 120 C
> 4 Return: B 0 D
>
>
> Many thanks for your help

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate the difference between two different times. Highbury 1 Microsoft Excel Worksheet Functions 1 24th Feb 2009 07:35 PM
Calculate the difference between two times - getting '#VALUE!' err =?Utf-8?B?TG91aXMgZGUgUG9pbnRlIGR1IExhYw==?= Microsoft Excel Worksheet Functions 2 20th Jun 2007 10:18 PM
Calculate difference in Times =?Utf-8?B?RGFycmVu?= Microsoft Excel Misc 13 16th Apr 2007 12:02 PM
Calculate the difference between two times Buffgirl71 Microsoft Excel Worksheet Functions 3 10th Feb 2006 12:05 AM
Re: Calculate difference between times Kim Microsoft Access Queries 1 13th Jan 2004 06:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 PM.