Help with simple function please

tommygunnz

New Member
Joined
Dec 20, 2017
Messages
17
I'm trying to add a commission structure.

front and back gross. back gross is paid 10%

if the front gross is negative, the you subtract that from the back gross, then multiply x 10%
if the front gross is positive then no deduction needed.


<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<colgroup><col style="width: 76px"><col width="74"><col width="75"><col width="69"></colgroup><tbody>[TR]
[TD="colspan: 2, align: center"] Front Gross [/TD]
[TD="colspan: 2, align: center"] Back Gross [/TD]
[/TR]
[TR]
[TD="align: center"] Gross [/TD]
[TD="align: center"] Commission [/TD]
[TD="align: center"] Gross [/TD]
[TD="align: center"] Commission [/TD]
[/TR]
[TR]
[TD="align: center"] $ (2,000.00)[/TD]
[TD="align: center"] $ 250.00 [/TD]
[TD="align: center"] $ 5,000.00 [/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
G3 H3 I3 J3

so =I3-(G3<0)*(i3*.1) this excel says = $900

but its not right

should be
$5,000 back gross - ($-2000) front gross =$3000 * 10% = 300




<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi

Try this.


Book1
GHIJ
2Front GrossBack GrossCommission
3-£(2,000.00)£250.00£5,000.00£300.00
Sheet2
Cell Formulas
RangeFormula
J3=(I3+MIN(G3, 0))*0.1
 
Upvote 0
Tommy, the above formula by @mrhstn should work. However, the fact that your original formula resulted in $900 instead of $4500 makes me wonder if something else is going on that hasn't been explained.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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