Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default Calculation money entitled for official trip

hi,
I want to calculated travelling cost depending on the days of travel. I have
following data.
(0-7)hrs-0$,
(8-13)hrs-5$,
(14-23)hrs-10$,
24hr-20$.

hi,
I want to calculated travelling cost depending on the days of travel. I have
following data.
(0-7)hrs-0$,
(8-13)hrs-5$,
(14-23)hrs-10$,
24hr-20$.

Now suppose I started the travel on 12.05.08 at 16.38hrs and my journey ends
on 16.05.08 at 11.50hrs, how can i calculate the money i am entitled to.
what should be the formulas and format of respective cells to calculate. Can
anyone please help me.
  #2   Report Post  
Posted to microsoft.public.excel.misc
dlw dlw is offline
external usenet poster
 
Posts: 510
Default Calculation money entitled for official trip

put your start date/time in A1, using this format mm/dd/yyy hh:mm, put your
end date/time in B1 using same format. Use formula =day(B1-A1) to get total
days of trip. use =hour(b1-a1) to get the leftover hours, multiply days by
$20, then IF statements or vlookup to get hours

"Sunny" wrote:

hi,
I want to calculated travelling cost depending on the days of travel. I have
following data.
(0-7)hrs-0$,
(8-13)hrs-5$,
(14-23)hrs-10$,
24hr-20$.

hi,
I want to calculated travelling cost depending on the days of travel. I have
following data.
(0-7)hrs-0$,
(8-13)hrs-5$,
(14-23)hrs-10$,
24hr-20$.

Now suppose I started the travel on 12.05.08 at 16.38hrs and my journey ends
on 16.05.08 at 11.50hrs, how can i calculate the money i am entitled to.
what should be the formulas and format of respective cells to calculate. Can
anyone please help me.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Calculation money entitled for official trip

Hi,
Let your Start Cell be A1
Let your Finish Cell be A2
Let your Time Away Cell be A3
Format A1:A3 with custom format dd:hh:mm
Enter "12.05.08 at 16.38hrs" in A1 in this way: 12/5/08 16:38
Enter "16.05.08 at 11.50hrs" in A2 in this way: 16/5/08 11:50
Enter =A2-A1 in A3.
A3 shows Time Away in days, hours, minutes (03:19:12)

Is this enough, or do you want XL to return the actual traveling cost?
Note that in your list, a period of 3 days 19 hours 12 minutes has no
specified cost. Am I missing something?

Regards - Dave.
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
official term for the -- operator? Dave F Excel Discussion (Misc queries) 11 February 28th 07 12:34 AM
looking for camping trip planner template excel Lsims Excel Discussion (Misc queries) 1 June 30th 06 08:53 AM
Money Calculation alen_re Excel Discussion (Misc queries) 8 January 31st 06 10:04 AM
Add money to a sum Tjoken Excel Worksheet Functions 2 September 7th 05 01:56 AM
Modify the official None-working days in the "NETWORKDAYS" Functio Zewer Excel Worksheet Functions 3 August 8th 05 11:27 AM


All times are GMT +1. The time now is 08:00 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"