Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Making calculations with times.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darryl_Neeley - 26 Sep 2007 18:00 GMT
I'm currently creating a Physical Fitness Test roster for my work. I'm making
it to where as you fill in the information, it automatically puts the point
values into the corresponding cell.

I have three categories: Pullups, Crunches, 3-Mile Run. I have the Pullups
and the Crunches completed. Those were no problem. Simple calculations.

However, with the 3 mile run, I am having trouble finding the correct
function for what I need. The times will range from under 18:00 to 33:00.
18:00 and under run time will result in 100 points, whereas 33:00 run time
will result in 10 points, and over 33:00 will result in 0. The full list can
be found at http://usmilitary.about.com/od/marines/l/blfitmale.htm .

What I want is when I type the time into cell A1, cell A2 will automatically
display the correct amount of points for the run.

Thank you.
Tom Ogilvy - 26 Sep 2007 18:32 GMT
I pasted your chart into a worksheet in columns A:D.  I put 18:15 in G4

then this formula

=IF(G4>TIME(28,0,0)+1,0,IF(G4<TIME(18,0,0),100,INDEX(A:A,MATCH(G4,D:D,1)+(INDEX(D:D,MATCH(G4,D:D,1),1)<>G4),1)))

returned 98 points

This assumes that your times look like minutes, but are being stored as
hours.  It would only require slight adjustments if they are actually stored
as minutes.  

If you  happen to be near Quantico and need more help, I will be teaching a
class there tonight. In any event, you can Contact me/send a sample sheet to  
twogilvy@msn.com

Signature

Regards,
Tom Ogilvy

> I'm currently creating a Physical Fitness Test roster for my work. I'm making
> it to where as you fill in the information, it automatically puts the point
[quoted text clipped - 13 lines]
>
> Thank you.
Dave D-C - 27 Sep 2007 16:41 GMT
How about
Format rows 1 and 4:  time HH:MM:SS
A4:C4 is  0:0:0  0:18:01  0:33:01
A5:C5 is  100  10  0
A2 is  =HLOOKUP(A1,$A4:$C5,2,TRUE)
Then entering a time in A1 (B1 ..) gives the score in A2 (B2 ..)
D-C

Darryl wrote:
>I'm currently creating a Physical Fitness Test roster for my work. I'm making
>it to where as you fill in the information, it automatically puts the point
[quoted text clipped - 13 lines]
>
>Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.