Split commission

greekexcel

New Member
Joined
Oct 31, 2022
Messages
32
Office Version
  1. 2019
Platform
  1. Windows
Hello i have this table
I want a formula that can split the commission when the sale is done by 2 more people.
For example when i input "KEVIN & JOHN" i want excel to split the commission 15% for KEVIN and 15% for JOHN and return their commission accordingly.
Thank u
 

Attachments

  • DEMO1.png
    DEMO1.png
    62.7 KB · Views: 14

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try

Book3
CDEFGHIJKL
1
2AmountSales RepKevinJohnRobertBill
329673Kevin8901.9000
428032John08409.600
544865Bill00013459.5
648492Kevin & John7273.87273.800
764867Bill & John & Robert06486.76486.76486.7
872451Robert & Kevin10867.65010867.650
947890Bill & Kevin7183.5007183.5
10
11
12For example when i input "KEVIN & JOHN" i want excel to split the commission 15% for KEVIN and 15% for JOHN and return their commission accordingly.
13
Sheet1
Cell Formulas
RangeFormula
G3:J9G3=E3*0.3*--ISNUMBER(SEARCH(G$2:J$2,$F3))/SUM(--ISNUMBER(SEARCH(G$2:J$2,$F3)))
Dynamic array formulas.
 
Upvote 0
Solution
Try

Book3
CDEFGHIJKL
1
2AmountSales RepKevinJohnRobertBill
329673Kevin8901.9000
428032John08409.600
544865Bill00013459.5
648492Kevin & John7273.87273.800
764867Bill & John & Robert06486.76486.76486.7
872451Robert & Kevin10867.65010867.650
947890Bill & Kevin7183.5007183.5
10
11
12For example when i input "KEVIN & JOHN" i want excel to split the commission 15% for KEVIN and 15% for JOHN and return their commission accordingly.
13
Sheet1
Cell Formulas
RangeFormula
G3:J9G3=E3*0.3*--ISNUMBER(SEARCH(G$2:J$2,$F3))/SUM(--ISNUMBER(SEARCH(G$2:J$2,$F3)))
Dynamic array formulas.
Hello and Thank u for your response :)
Unfortunately i get the message "There is a problem with this formula"
 
Upvote 0
in What version of excel you are using this?
 
Upvote 0
I installed XL2BB but the buttons are greyed out.
I will try to find a solution with XL2BB and post a sample data
Thank u all!
 
Upvote 0
Did you try what I suggested?
 
Upvote 0
Good morning i tried but i was not workin properly.
I will post a sample data thank u
 
Upvote 0
Hey everyone this is a sample data thank u in advance!

DEMO FOR VBA1.xlsx
ABCDEFGHIJ
2CP DATEVESSELSQMAREAAMOUNTSALES REPKEVINJOHNROBERTBILL
325/2/2022PENTHOUSE355CENTRE$ 29,673.00KEVIN$ 5,934.60$ -$ -$ -
426/2/2022LOFT230SOUTH$ 28,032.00JOHN$ -$ 4,204.80$ -$ -
527/2/2022MANSION147NORTH$ 44,865.00BILL$ -$ -$ -$ 4,486.50
628/2/2022LOFT194NORTH$ 48,492.00KEVIN & JOHN$ -$ -$ -$ -
71/3/2022MANSION88SOUTH$ 41,831.00BILL &KEVIN$ -$ -$ -$ -
82/3/2022HOUSE78CENTRE$ 59,924.00ROBERT$ -$ -$ 11,984.80$ -
93/3/2022MANSION84CENTRE$ 64,867.00BILL & JOHN & ROBERT$ -$ -$ -$ -
104/3/2022PENTHOUSE177SOUTH$ 72,451.00ROBERT & KEVIN$ -$ -$ -$ -
115/3/2022LOFT113NORTH$ 39,103.00KEVIN & JOHN$ -$ -$ -$ -
126/3/2022LOFT347SOUTH$ 45,335.00KEVIN$ 9,067.00$ -$ -$ -
137/3/2022MANSION173CENTRE$ 47,890.00BILL &KEVIN$ -$ -$ -$ -
148/3/2022HOUSE163SOUTH$ 78,916.00ROBERT & KEVIN$ -$ -$ -$ -
159/3/2022HOUSE100NORTH$ 36,550.00ROBERT & KEVIN$ -$ -$ -$ -
1610/3/2022PENTHOUSE51WEST$ 60,594.00JOHN & BILL$ -$ -$ -$ -
1711/3/2022LOFT375WEST$ 28,861.00BILL & KEVIN$ -$ -$ -$ -
1812/3/2022LOFT279NORTH$ 74,130.00KEVIN & JOHN$ -$ -$ -$ -
1913/3/2022MANSION330EAST$ 58,979.00BILL &KEVIN$ -$ -$ -$ -
2014/3/2022PENTHOUSE84SOUTH$ 72,012.00JOHN$ -$ 10,801.80$ -$ -
2115/3/2022LOFT164EAST$ 18,166.00ROBERT & BILL$ -$ -$ -$ -
2215/12/2022HOUSE212WEST$ 46,311.00ROBERT & JOHN & BILL$ -$ -$ -$ -
Sheet1
Cell Formulas
RangeFormula
G3:G22G3=IF([@[SALES REP]]=Table1[[#Headers],[KEVIN]],[@AMOUNT]*$G$1,0)
H3:H22H3=IF([@[SALES REP]]=Table1[[#Headers],[JOHN]],[@AMOUNT]*$H$1,0)
I3:I22I3=IF([@[SALES REP]]=Table1[[#Headers],[ROBERT]],[@AMOUNT]*$I$1,0)
J3:J22J3=IF([@[SALES REP]]=Table1[[#Headers],[BILL]],[@AMOUNT]*$J$1,0)
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,142
Members
449,363
Latest member
Yap999

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