+ Reply to Thread
Results 1 to 3 of 3

Index or Match Function

  1. #1
    Registered User
    Join Date
    12-04-2008
    Location
    Birmingham, UK
    MS-Off Ver
    Office 2007
    Posts
    43

    Index or Match Function

    I have attached a workbook which contains a data sheet and a form sheet.

    I am creating a form which calculates whether it is better to pay an employee for their business mileage using the HMRC approved rates or at the actual negotiated fuel rate we get as a business.

    The form asks the employee to enter their vehicle cc rating and choose a fuel type. They then enter their business mileage and their vehicle MPG.

    Calculating the rate paid using the negotiated fuel rate is easy cell B11 on the form sheet does this.

    Calculating the rate paid using the HMRC AFR is more difficult. I need to take the fuel type and the cc rating of the vehicle and apply the relevant pence per mile from the table in the data sheet and multiply this by the business miles.

    I think this may be achieved using Index but I cant work out a solution.

    Any help would be appreciated.
    Attached Files Attached Files
    Last edited by dcaraher; 02-06-2011 at 09:37 AM. Reason: Found my own solution

  2. #2
    Registered User
    Join Date
    12-04-2008
    Location
    Birmingham, UK
    MS-Off Ver
    Office 2007
    Posts
    43

    Re: Index or Match Function

    I have managed to solve this myself see new attached file for solution.
    Attached Files Attached Files
    Last edited by dcaraher; 02-06-2011 at 09:39 AM.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Index or Match Function

    for petrol
    =LOOKUP(Form!B3,{0,1,1401,2001},{0,0.13,0.15,0.21}) but your index/,match is both quicker and shorter!
    Last edited by martindwilson; 02-06-2011 at 09:45 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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