Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Question to DeFranker

Posted on 2012-03-20
3
Medium Priority
?
306 Views
Last Modified: 2012-06-21
Thanks that formula worked great, but what would the formula be for anything over 30 minutes rather 60?
0
Comment
Question by:TonyBarnes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Expert Comment

by:Frank White
ID: 37742762
You can see my additional comment in your previous question for more explanation. Basically, change the TIME(1,0,0) part, which is in the format TIME(hour,minute,second). For 30 minutes, the formula would look like this:

=HOUR(MAX(B1-A1-TIME(0,30,0),0))*60+MINUTE(MAX(B1-A1-TIME(1,0,0),0))

Note that the cell where this formula is in must not be in "Date" format, otherwise you'll get a bunch of nonsense.
0
 

Author Comment

by:TonyBarnes
ID: 37742899
i HAVE JUST TRIED THIS AND WHEN I THEN PUT IN START TIME10:00, END TIME10:32 THE RESULT IS BLANK WHEN I ACTUALLY NEED IT TO BE 2!  i.e. The first 30 minutes are included in cost, any additional minutes are charged.
0
 
LVL 3

Accepted Solution

by:
Frank White earned 2000 total points
ID: 37743044
Looks like you figured out my mistake, judging from your comment in the other question. As you've said, it should actually be like this:

=HOUR(MAX(B1-A1-TIME(0,30,0),0))*60+MINUTE(MAX(B1-A1-TIME(0,30,0),0))

I only changed the first TIME() call, without reading the whole line again. The second TIME() call also needed to be changed.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lately there has been a variety of news related to U.S. employment.  Stories about worker productivity, automobile and airline unions, low employment and foreign laborers have frequented the news.  Each story has good and bad attributes we might arg…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question