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>
Front Gross Back Gross
Gross Commission Gross Commission
$ (2,000.00) $ 250.00 $ 5,000.00

<colgroup><col style="width: 76px"><col width="74"><col width="75"><col width="69"></colgroup><tbody>
</tbody>
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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,214,788
Messages
6,121,603
Members
449,038
Latest member
Arbind kumar

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