Excel 2010-Now
Excel 2007
Excel 2003
Tips & Tricks
Excel Forum
Course Index CIG Excel Book
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Excel Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Excel Formula
Steve Smith 

16 years ago
Hi Richard,

I am looking for a excel formula.  This deals with hours and minutes.  Lets say a schedule pick up time is 7:30 am (Cell A) but actual pick up time is recorded as 7:35 am (Cell B)  I need to know if the actual pick up time is within an + or - 10 minute window that we'll call "on time" (Cell C).  If out side of the on time window then record as "not on time" (Cell C).  

Then I need to know if "on time" is 95% of total trips.


Answer from Richard Rost:

Well, if you have 7:30 in A1, and 7:35 in B1, then you could put this in C1:

=ABS(A1-B1)

This will give you the ABSOLUTE VALUE of A1 minus B1 (to get rid of any negative values).

Now, just get the MINUTE value from the remaining time in C1:

=MINUTE(C1)

You should now be left with the number 5, in this case. Now the rest is just simple math. Add up the total number of items and then divide by the number that is less than or equal to 10. You can use the COUNTIF formula to get this value. Here's a tutorial:

You can use the SUMIF and COUNTIF functions to add up or count values based on specific criteria, respectively.

Here is a free tutorial that explains how to use both:

http://www.599cd.com/tips/excel/sumif-countif?key=BlFAlEx

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Excel Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/19/2026 12:35:08 AM. PLT: 0s