Link to home
Start Free TrialLog in
Avatar of TonyBarnes
TonyBarnes

asked on

Question to DeFranker

Thanks that formula worked great, but what would the formula be for anything over 30 minutes rather 60?
Avatar of Frank White
Frank White
Flag of Canada image

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.
Avatar of TonyBarnes
TonyBarnes

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Frank White
Frank White
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial