Question to DeFranker

Thanks that formula worked great, but what would the formula be for anything over 30 minutes rather 60?
Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
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 Commented:
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
Commented:
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

Experts Exchange Solution brought to you by