PC Review


Reply
Thread Tools Rate Thread

Comparing 2 columns of time

 
 
TARogers
Guest
Posts: n/a
 
      16th Nov 2003

I am trying to compare 2 columns of time. Here is the formula I am
trying to use:

=IF(H2>(LOOKUP(Sheet3!A2,Minimums!A2:A35,Minimums!D235)),
"Pass","Fail")

H2 is the run time (mm:ss), A2 is their age, A2:A35 and D235 is ages
and max times.

Basically, I look at someone age, then take the time it took them to
run 3 miles and compare that time to a maximum standard time for the
same age.
Example: 22 year old male has 28 minutes to run 3 miles.

I want to have the cell tell me if the run time is greater than the max
allowed time.


Any help will this is greatly appreciated. Thanks.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
immanuel
Guest
Posts: n/a
 
      17th Nov 2003
It looks like you've got your "Pass" & "Fail" inverted (based on my
understanding of your logic). But other than that, your formula looks good.
Is there something amiss in the results?

Are your ages sorted (ascending) on the Minimums sheet?

/i.

"TARogers" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> I am trying to compare 2 columns of time. Here is the formula I am
> trying to use:
>
> =IF(H2>(LOOKUP(Sheet3!A2,Minimums!A2:A35,Minimums!D235)),
> "Pass","Fail")
>
> H2 is the run time (mm:ss), A2 is their age, A2:A35 and D235 is ages
> and max times.
>
> Basically, I look at someone age, then take the time it took them to
> run 3 miles and compare that time to a maximum standard time for the
> same age.
> Example: 22 year old male has 28 minutes to run 3 miles.
>
> I want to have the cell tell me if the run time is greater than the max
> allowed time.
>
>
> Any help will this is greatly appreciated. Thanks.
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~View and post usenet messages directly from http://www.ExcelForum.com/
>



 
Reply With Quote
 
TARogers
Guest
Posts: n/a
 
      17th Nov 2003

immanuel,

Yes the result does not change once the time goes belong the ma
allowed time (i.e., the result says "Pass" for a 22:15 time, but still
says "Pass" for a 29:26 time). I tried changing the inequalities an
text result ("Pass" or "Fail"), but have not had any success. You
help is greatly appreciated.

Tod

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

 
Reply With Quote
 
immanuel
Guest
Posts: n/a
 
      19th Nov 2003
Hi Todd,

Would you like to post a sample of your real data? It might help me help
you more efficiently.

/i.

"TARogers" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> immanuel,
>
> Yes the result does not change once the time goes belong the max
> allowed time (i.e., the result says "Pass" for a 22:15 time, but stills
> says "Pass" for a 29:26 time). I tried changing the inequalities and
> text result ("Pass" or "Fail"), but have not had any success. Your
> help is greatly appreciated.
>
> Todd
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~View and post usenet messages directly from http://www.ExcelForum.com/
>



 
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
Comparing two columns seven Microsoft Excel Programming 7 14th Apr 2011 03:02 PM
Comparing 2 files on date/time stamp, and based time difference do a subroutine info@stevik.nl Microsoft Excel Programming 1 28th Sep 2007 03:53 AM
comparing columns =?Utf-8?B?cGFkczY0?= Microsoft Excel Misc 1 6th Jul 2007 08:22 PM
comparing columns dfeld71 Microsoft Excel Misc 2 14th Jul 2005 11:00 AM
Comparing two Columns dsc55 Microsoft Excel Discussion 1 23rd Nov 2004 09:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 PM.