Splitting commission

chriskenny

New Member
Joined
Jun 4, 2019
Messages
21
[TABLE="width: 1000"]
<tbody>[TR]
[TD][TABLE="width: 1000"]
<tbody>[TR]
[TD]M
[/TD]
[TD]N
[/TD]
[TD]O
[/TD]
[TD]P
[/TD]
[TD]Q
[/TD]
[TD]R
[/TD]
[TD]S
[/TD]
[/TR]
[TR]
[TD]I put staff no.
in here
[/TD]
[TD]I have a formula in here when it generates sales person name after
entering her staff no. in column M -
formula is =INDEX('Staff info'!$a$3:$a$22,match($Q2,'Staff Info'!$G$3:$G$22,0))
[/TD]
[TD]Formula in here for single sales
=IF(G34="YES,25%,20%)*12
[/TD]
[TD]I have this as where I enter Y OR N if split commission
[/TD]
[TD]Same as M
[/TD]
[TD]Same as N
[/TD]
[TD]
Split amount goes
[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
</tbody>[/TABLE]

So what I would like to do is:


1. if I put Y in column P I would like the figure in column O divided by 2 and this amount put into column O & S
2. If I put N in column P then the whole figure would go in column O

I hope this makes sense

Thank you in advance
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
"1. if I put Y in column P I would like the figure in column O divided by 2 and this amount put into column O & S
2. If I put N in column P then the whole figure would go in column O"

You want to change the existing figure in column O (which is based on a formula)?

You cannot do this with formulas, you need VBA for this.

A cell can contain a formula or a value, not both.
A cell can be the result of a formula looking at another cell but if it already contains a value or a formula the cell itself cannot be changed, only by VBA.
 
Last edited:
Upvote 0
1. if I put Y in column P I would like the figure in column O divided by 2 and this amount put into column O & S
2. If I put N in column P then the whole figure would go in column O

Hi, something like this maybe.


Excel 2013/2016
GHIJKLMNOPQRS
34Yes123Name1.5Y1.5
35Yes123Name3N0
36No123Name1.2Y1.2
37No123Name2.4N0
Sheet1
Cell Formulas
RangeFormula
O34=IF(G34="YES",25%,20%)*IF(P34="Y",6,12)
S34=IF(P34="Y",O34,0)
 
Upvote 0
Change your formula in O34

in O34
IF(P34="","",IF(G34="YES",25%,20%)*12/((P34="YES")*2+(P34="NO")*1))

in S34
=IF(P34="YES",O34,"")
 
Last edited:
Upvote 0
Cross posted multiple sites.

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Please supply links to all other sites where you have asked this question.
 
Last edited:
Upvote 0
I did not realise I would upset people by doing this and I apologise. I would have marked as solved once I had answer.
I have posted in the following:
https://www.excelguru.ca/forums/showthread.php?10058-Splitting-commission&p=41424#post41424
https://www.excelforum.com/excel-for...tatements.html

I did not mean any harm but this has upset me
frown.png
 
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