#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default time calculations

I have a spreadsheet for vehicles towed: there are these fields:
date-in time date-out time (the time is military time)
date-in time
date-out time
question: If I have a vehicle towed, 8/1/2007 1300 8/1/2007 1400
8/1/2007 1300
8/1/2007 1410
8/1/2007 1300
8/2/2007 1410

I need a calculation that if a vehicle is towed and picked up the same day
by 1400 a flat rate is $15.00 1/2 the day rate, but if is picked up the same
day at 1405, it is charged $30.00 (this is a days storage charge)

If it gets picked up the next day before 1400 it is charged $30.00 but if is
at 1405 then it is charged $60.00. The towing fee is $30.00 per day, and the
new day starts at 1405.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default time calculations

A B C
D E

Date in Time Date-out Time Charge
01/08/2007 1300 01/08/2007 1400 £15.00
01/08/2007 1300 01/08/2007 1410 £30.00
01/08/2007 1300 02/08/2007 1410 £60.00
01/08/2007 1300 03/08/2007 1410 £90.00

in E2:


=IF(C2=A2,IF(D2<=1400,15,30),IF(D2<=1400,(C2-A2)*30,((C2-A2)+1)*30))

copy down


HTH




"Pammy" wrote:

I have a spreadsheet for vehicles towed: there are these fields:
date-in time date-out time (the time is military time)
date-in time
date-out time
question: If I have a vehicle towed, 8/1/2007 1300 8/1/2007 1400
8/1/2007 1300
8/1/2007 1410
8/1/2007 1300
8/2/2007 1410

I need a calculation that if a vehicle is towed and picked up the same day
by 1400 a flat rate is $15.00 1/2 the day rate, but if is picked up the same
day at 1405, it is charged $30.00 (this is a days storage charge)

If it gets picked up the next day before 1400 it is charged $30.00 but if is
at 1405 then it is charged $60.00. The towing fee is $30.00 per day, and the
new day starts at 1405.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time difference calculations, daylight savings time, Excel Tim Excel Discussion (Misc queries) 1 December 28th 06 04:18 PM
Overlapping time calculations and automatic time updates Arlette Excel Worksheet Functions 1 December 9th 06 12:20 AM
Time calculations joe z Excel Worksheet Functions 1 May 12th 06 05:07 AM
convert time imported as text to time format for calculations batfish Excel Worksheet Functions 3 October 27th 05 11:24 PM
Please help with Time calculations Al Excel Discussion (Misc queries) 2 August 14th 05 07:41 PM


All times are GMT +1. The time now is 11:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"