Commissions formula - IF/THEN

OlinAct

New Member
Joined
Nov 5, 2015
Messages
5
We are trying to create a single column for double checking commissions pays. All the data is on one worksheet

The logic would look something like:

'If there are 1-14 lines with the dates of October, then multiply the value in this cell by .01, and if there are 15-19 lines with the dates of October, then multiply the value in this cell by .0125, and if there are over 20 lines with the dates of October, then multiply the values in this cell by .015.'
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
An example would have been useful.
Check your definition of criteria.


Excel 2010
ABCDEFG
1Date1-Oct-18210.015
29-Sep-1831-Oct-18
39-Sep-18
41-Oct-18
5b
Cell Formulas
RangeFormula
F1=COUNTIFS(A:A,">="&E1,A:A,"<="&E2)
G1=IF(F1>20,0.015,IF(F1>15,0.0125,IF(F1>0,0.01,0)))
E2=EOMONTH(E1,0)
 
Upvote 0
An example would have been useful.
Check your definition of criteria.

Excel 2010
ABCDEFG
1Date1-Oct-18210.015
29-Sep-1831-Oct-18
39-Sep-18
41-Oct-18

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
5b

Worksheet Formulas
CellFormula
F1=COUNTIFS(A:A,">="&E1,A:A,"<="&E2)
G1=IF(F1>20,0.015,IF(F1>15,0.0125,IF(F1>0,0.01,0)))
E2=EOMONTH(E1,0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


Got it. An example, meaning what data? Say I have 15 lines, all different October dates, with a column that has a sales number. I need to create a column that calculates the percentage of the sales number, dependent on how many lines there are with October dates.

So say Column E has a date, column F is the sale amount, and column G will be the commission amount, calculated off column F and how many lines there are that have October dates.
 
Upvote 0
To save space, I'd build a short table for the commissions and eliminate the IF statement. The IF is cleaner and requires less resources but would be a little wordy if you're aiming for one formula.

=vlookup(dave's countIFS, commissions table, 1 Fuzzy Match)* sumifs (same formula as Dave's CountIFS)

If you're looking to do this per line, instead of a summary like Dave is showing, drop the Sumifs and multiply by the Sales Amount on that line.
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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