Consulting

Results 1 to 3 of 3

Thread: VLOOKUP - Multiply by a percentage if appropriate

  1. #1
    VBAX Mentor Hoopsah's Avatar
    Joined
    Nov 2007
    Posts
    303
    Location

    VLOOKUP - Multiply by a percentage if appropriate

    Hi All,

    Wonder if you can help.

    I've attached a sample worksheet showing roughly what I'm trying to achieve - I'm completely stumped.

    Column B just shows an item code.
    Column C shows the quantity
    Column D is the rate for the item
    Column E is where the formula that I need help with is.

    If (In column E) it looks up the table and there is a whole number then just multiply rate x quantity. BUT, if the rate is a percentage then multiply by the percent.

    I can only get it to multiply the whole number and not differentiate.

    I've added a column (F) to show the answer that it should be.

    Thanks all

    (P.S. I'll probably be posting this in Mr Excel too as I'm really hoping to have an answer before my team meeting tomorrow - Thanks again)

    Hoopsah
    Attached Files Attached Files
    I am playing all the right notes, but not necessarily in the right order.
    Eric Morecambe

  2. #2
    the formula on E3:

    =IF(D3<1,1+D3,D3)*C3

    copy it down to the bottom.

  3. #3
    VBAX Mentor Hoopsah's Avatar
    Joined
    Nov 2007
    Posts
    303
    Location
    That is brilliant!!!

    Thank you arnelgp - I love this forum
    I am playing all the right notes, but not necessarily in the right order.
    Eric Morecambe

Posting Permissions

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