Solved

Question to DeFranker

Posted on 2012-03-20
3
301 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
  • 2
3 Comments
 
LVL 3

Expert Comment

by:DaFranker
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:
DaFranker earned 500 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
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 …
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now