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
Why don't convert table to normal range and use the formula in post #2.

1674559718343.png
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Is it not correct?

Book2
ABCDEFGHIJ
2CP DATEVESSELSQMAREAAMOUNTSALES REPKEVINJOHNROBERTBILL
32/28/2022LOFT194NORTH14547KEVIN & JOHN2182.052182.0500
Sheet1 (2)
Cell Formulas
RangeFormula
G3:J3G3=E3*0.3*--ISNUMBER(SEARCH(G$2:J$2,$F3))/SUM(--ISNUMBER(SEARCH(G$2:J$2,$F3)))
Dynamic array formulas.
 
Upvote 0
It is not returning 15%??

Book2
DEFGHIJKL
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.
Sheet4
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
Is it not correct?

Book2
ABCDEFGHIJ
2CP DATEVESSELSQMAREAAMOUNTSALES REPKEVINJOHNROBERTBILL
32/28/2022LOFT194NORTH14547KEVIN & JOHN2182.052182.0500
Sheet1 (2)
Cell Formulas
RangeFormula
G3:J3G3=E3*0.3*--ISNUMBER(SEARCH(G$2:J$2,$F3))/SUM(--ISNUMBER(SEARCH(G$2:J$2,$F3)))
Dynamic array formulas.
This is the result
also i have to replace commas with semicolon
DEMO FOR VBA1.xlsx
ABCDEFGHIJ
120%15%20%10%
2CP DATEVESSELSQMAREAAMOUNTSALES REPKEVINJOHNROBERTBILL
325/2/2022PENTHOUSE355CENTRE$ 29,673.00KEVIN$ 8,901.90
426/2/2022LOFT230SOUTH$ 28,032.00JOHN#DIV/0!
527/2/2022MANSION147NORTH$ 44,865.00KEVIN$ 13,459.50
628/2/2022LOFT194NORTH$ 48,492.00KEVIN & JOHN$ 14,547.60
71/3/2022MANSION88SOUTH$ 41,831.00BILL &KEVIN$ 12,549.30
82/3/2022HOUSE78CENTRE$ 59,924.00ROBERT#DIV/0!
93/3/2022MANSION84CENTRE$ 64,867.00BILL & JOHN & ROBERT#DIV/0!
104/3/2022PENTHOUSE177SOUTH$ 72,451.00ROBERT & KEVIN$ 21,735.30
115/3/2022LOFT113NORTH$ 39,103.00KEVIN & JOHN$ 11,730.90
126/3/2022LOFT347SOUTH$ 45,335.00KEVIN$ 13,600.50
137/3/2022MANSION173CENTRE$ 47,890.00BILL &KEVIN$ 14,367.00
148/3/2022HOUSE163SOUTH$ 78,916.00ROBERT & KEVIN$ 23,674.80
159/3/2022HOUSE100NORTH$ 36,550.00ROBERT & KEVIN$ 10,965.00
1610/3/2022PENTHOUSE51WEST$ 60,594.00JOHN & BILL#DIV/0!
1711/3/2022LOFT375WEST$ 28,861.00BILL & KEVIN$ 8,658.30
1812/3/2022LOFT279NORTH$ 74,130.00KEVIN & JOHN$ 22,239.00
1913/3/2022MANSION330EAST$ 58,979.00BILL &KEVIN$ 17,693.70
2014/3/2022PENTHOUSE84SOUTH$ 72,012.00JOHN#DIV/0!
2115/3/2022LOFT164EAST$ 18,166.00ROBERT & BILL#DIV/0!
2215/12/2022HOUSE212WEST$ 46,311.00ROBERT & JOHN & BILL#DIV/0!
Sheet1
Cell Formulas
RangeFormula
G3:G22G3=E3*0.3*--ISNUMBER(SEARCH(G$2:J$2,$F3))/SUM(--ISNUMBER(SEARCH(G$2:J$2,$F3)))
 
Upvote 0
Are you using Office 365?

If you seen my results, it splits based on number of person.
 
Upvote 0
If you are not using office 365 then select cells G3 to J3 then press F2 and hit CTRL + SHIFT + ENTER
 
Upvote 0
Are you using Office 365?

If you seen my results, it splits based on number of person.
I am using office 2019
your results are correct exactly what i want
Any ideas what is wrong with my sheet?
Thank you
 
Upvote 0
Thank you very much Sufiyan97 it finally worked!!!!
You are a Life saver :D
 
Upvote 0

Forum statistics

Threads
1,215,872
Messages
6,127,430
Members
449,382
Latest member
DonnaRisso

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