+ Reply to Thread
Results 1 to 2 of 2

formula for multiple cell percent total

  1. #1
    Registered User
    Join Date
    06-15-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    formula for multiple cell percent total

    Okay, it has probably been explained on here more than once and I apologize for that up front. I have been working to create a formula that in the end will pay an employee a different percentage depending on whether or not they drove their vehicle or the company vehicle on business. For instance, if the GROSS bill was $20 and PARTS were $5 and the employee drove THEIR vehicle, then, they would get 50% of the NET, in this case it would be $7.50. IF they drove a company vehicle, THEN they would get 40% of the NET or $6.00. Here is what I have and it does not work for me:

    =IF(D5>0,(F5-G5)*0.4) (E5>0,(F5-G5)*0.5)

    Where D5 is company mileage and E5 is personal mileage. SO, if they enter mileage in one cell or the other, it would figure the correct percentage. F5 is GROSS, G5 is PARTS. This would total out in H5

    Thanks in Advance

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

    Re: formula for multiple cell percent total

    =if(isnumber(d5),(f5-g5)*40%,if(isnumber(e5),(f5-g5)*50%,""))
    or
    =if(d5>0,(f5-g5)*40%,if(e5>0,(f5-g5)*50%,""))
    "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