Splitting commission

chriskenny

New Member
Joined
Jun 4, 2019
Messages
13
M
N
O
P
Q
R
S
I put staff no.
in here
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))
Formula in here for single sales
=IF(G34="YES,25%,20%)*12
I have this as where I enter Y OR N if split commission
Same as M
Same as N

Split amount goes

<tbody>
</tbody>


<tbody>
</tbody>

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
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,314
"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:

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,176
Office Version
365
Platform
Windows
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.

<b>Excel 2013/2016</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th><th>L</th><th>M</th><th>N</th><th>O</th><th>P</th><th>Q</th><th>R</th><th>S</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">34</td><td style=";">Yes</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">123</td><td style=";">Name</td><td style="text-align: right;background-color: #FFFF00;;">1.5</td><td style=";">Y</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;background-color: #FFFF00;;">1.5</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">35</td><td style=";">Yes</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">123</td><td style=";">Name</td><td style="text-align: right;;">3</td><td style=";">N</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">36</td><td style=";">No</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">123</td><td style=";">Name</td><td style="text-align: right;;">1.2</td><td style=";">Y</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">1.2</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">37</td><td style=";">No</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">123</td><td style=";">Name</td><td style="text-align: right;;">2.4</td><td style=";">N</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">0</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">O34</th><td style="text-align:left">=IF(<font color="Blue">G34="YES",25%,20%</font>)*IF(<font color="Blue">P34="Y",6,12</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">S34</th><td style="text-align:left">=IF(<font color="Blue">P34="Y",O34,0</font>)</td></tr></tbody></table></td></tr></table><br />
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,314
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:

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
30,569
Office Version
365
Platform
Windows
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:

Forum statistics

Threads
1,078,504
Messages
5,340,766
Members
399,394
Latest member
farlow

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top