Results 1 to 2 of 2

Thread: If query
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Aug 2017
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default If query

    Hello, I would like to know how to create an IF query for multiple criteria. Basically I need to calculate commission based on the following criteria,

    • brand
    • type
    • min margin
    • if the type is used, then look at the sell price


    the answer to all of these will then need to look to know if what kind of sale it was (dealer,new,existing) and apply the criteria again to come up with a final commission % for example

    if brand 1 was a new type and had a margin of 6% to a new customer - the commission would be 1.5%
    if the type was used and had a sell price of $25k with a margin of 25% to an existing customer - the commission would be 1.5%

    any help or advice would be very grateful

    i am unsure how to copy my excel table for an example either

    thanks











  2. #2
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,794
    Post Thanks / Like
    Mentioned
    57 Post(s)
    Tagged
    11 Thread(s)

    Default Re: If query

    if brand 1 was a new type and had a margin of 6% to a new customer - the commission would be 1.5%
    if the type was used and had a sell price of $25k with a margin of 25% to an existing customer - the commission would be 1.5%
    That appears to be a small subset of all the possibilities.
    Can you please post ALL your conditions?
    Last edited by Joe4; Jul 10th, 2019 at 07:19 AM.
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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