+ Reply to Thread
Results 1 to 2 of 2

Calculation Fuel cost automatic

  1. #1
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Calculation Fuel cost automatic

    Hi all

    could you please help me is there any macro that calculate fuel automatic?
    i have attach file with explain the problem in inside
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculation Fuel cost automatic

    Change the formula in B7 to this:

    =CEILING(IF($L7="O", INDEX('SUMMARY_NO(Kilometre)'!$B$4:$I$27, MATCH($A7, 'SUMMARY_NO(Kilometre)'!$A$4:$A$27, 0), MATCH(B$6, 'SUMMARY_NO(Kilometre)'!$B$3:$I$3, 0))/VLOOKUP(B$6, Info!$E$6:$F$14, 2, 0)*VLOOKUP(B$6, Info!$E$6:$K$14, 5, 0), INDEX('SUMMARY_NO(Kilometre)'!$B$4:$I$27, MATCH($A7, 'SUMMARY_NO(Kilometre)'!$A$4:$A$27, 0), MATCH(B$6, 'SUMMARY_NO(Kilometre)'!$B$3:$I$3, 0))/VLOOKUP(B$6, Info!$E$6:$F$14, 2, 0)*VLOOKUP(B$6, Info!$E$6:$J$14, 6, 0)),500)

    Now copy down and across the table.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1