Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default time compare in Excel

I have two columns that contain time of two runs of executables.

I want to fomrat looks of the (Format - Conditional formating) cell
using follwoing rules

some color if both runs took same time
some another color if one run took more than 50% or other run time

Time display should be in format 40:25:10 (run took 40 hrs 25 min and
10 seconds).

Can you please help me to achive this in excel ?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default time compare in Excel

Hi
if your values are in cells A1 and B1 try the following:
- select cell A1
- goto the conditional format dialog and enter the following formula
=A1=B1
- choose your format
- add a second condition and enter the following formula
=ABS(A1-B1)/B1=0.5
- choose your second format

--
Regards
Frank Kabel
Frankfurt, Germany


Sushrut Sardeshmukh wrote:
I have two columns that contain time of two runs of executables.

I want to fomrat looks of the (Format - Conditional formating) cell
using follwoing rules

some color if both runs took same time
some another color if one run took more than 50% or other run time

Time display should be in format 40:25:10 (run took 40 hrs 25 min

and
10 seconds).

Can you please help me to achive this in excel ?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default time compare in Excel

Assuming the values are in A1 and B1

use formulae of

$A1=$B1

for same time

and

MAX($A1,$B1)(MIN($A1,$B1)*1.5)

for greater than 50% between

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Sushrut Sardeshmukh" wrote in message
om...
I have two columns that contain time of two runs of executables.

I want to fomrat looks of the (Format - Conditional formating) cell
using follwoing rules

some color if both runs took same time
some another color if one run took more than 50% or other run time

Time display should be in format 40:25:10 (run took 40 hrs 25 min and
10 seconds).

Can you please help me to achive this in excel ?



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
If statement to compare time cell to a time Z-Man-Cek Excel Worksheet Functions 16 July 29th 16 08:17 AM
Excel 2002: Can I compare 4 cells at one time ? Mr. Low Excel Discussion (Misc queries) 8 March 7th 08 05:25 PM
verify use of TIME Function, Find Quantity Level compare to time-d nastech Excel Discussion (Misc queries) 9 July 11th 07 01:58 PM
compare time Eddie Munster Excel Discussion (Misc queries) 5 October 10th 05 01:27 AM
compare time in IF statement Excel Worksheet Functions 4 July 10th 05 06:18 PM


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