If query

jcaston85

New Member
Joined
Aug 20, 2017
Messages
2
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










[TABLE="width: 335"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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:
Upvote 0

Forum statistics

Threads
1,223,157
Messages
6,170,419
Members
452,325
Latest member
BlahQz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top