Excel Guides

How to Check Which Commission Rate Applies on a Transaction Date in Excel

A commission rate changes on November 15. The payout is prepared on November 30, but the November 14 sale still uses 4% if the plan specifies transaction date. The November 15 sale uses 6%. Before filling the rate column, check whether the plan and date match exactly one rate row.

Microsoft Dynamics 365 supports a validity period for a sales commission rule. The same check works when a small team keeps its approved rate schedule in Excel. Confirm which date the plan uses and whether the end date is inclusive. The synthetic example below uses transaction dates and includes both the first and last day of each rate period. Microsoft’s commission setup documentation

Set up the two sheets

Name the first sheet Rates and paste these synthetic rows into A1. Enter the dates as Excel date values and the rates as numeric percentages. The check assumes every rate row has approved start and end dates, with the start on or before the end. Use the same plan IDs on both sheets. The IDs in this example contain letters and numbers only.

Plan ID	Start date	End date	Rate
A1	2026-11-01	2026-11-14	4%
A1	2026-11-15	2026-11-30	6%
B1	2026-11-01	2026-11-18	3%
B1	2026-11-16	2026-11-30	5%
C1	2026-11-05	2026-11-10	0%
C1	2026-11-20	2026-11-30	3.5%

Name the second sheet Payouts and paste the next rows into A1. If Excel leaves any of the dates as text, convert them to date values before filling down.

Payout ID	Plan ID	Transaction date
P-01	A1	2026-11-14
P-02	A1	2026-11-15
P-03	B1	2026-11-17
P-04	C1	2026-11-12

Count the eligible rates before returning a value

On Payouts, name D1 Eligible rates, E1 Status and F1 Rate. In D2, use COUNTIFS to count rows for the same plan whose start date is on or before the transaction date and whose end date is on or after it. Microsoft’s COUNTIFS documentation

=IF(OR(B2="",NOT(ISNUMBER(C2))),"",COUNTIFS(Rates!$A$2:$A$7,B2,Rates!$B$2:$B$7,"<="&C2,Rates!$C$2:$C$7,">="&C2))

In E2, mark zero matches as a missing rate, multiple matches as an overlap and a missing plan or nonnumeric date as an input issue.

=IF(D2="","Check input",IF(D2=0,"Missing rate",IF(D2>1,"Overlapping rates","Ready")))

In F2, return the rate only when the check finds one eligible row. Format F as a percentage and fill D2:F2 down through row 5. Extend the four fixed rate ranges when you add more rate rows.

=IF(E2="Ready",SUMIFS(Rates!$D$2:$D$7,Rates!$A$2:$A$7,B2,Rates!$B$2:$B$7,"<="&C2,Rates!$C$2:$C$7,">="&C2),"")

Check the source rows before closing the payout report

Payouts row	Matches	Status	Rate	Evidence
2	1	Ready	4%	Rates!A2:D2
3	1	Ready	6%	Rates!A3:D3
4	2	Overlapping rates		Rates!A4:D5
5	0	Missing rate		Rates!A6:D7 brackets the gap

For P-03, both B1 rows cover November 17. Confirm the approved date ranges before choosing a rate. For P-04, C1’s first period ends November 10 and the next starts November 20. Leave the rate blank until the gap is resolved. A genuine 0% rate is a valid result when exactly one approved row applies.

This check works directly in Excel. If you already combine transaction and rate exports in Power Query, join on the plan ID, then count all eligible date ranges before selecting the rate. Keep transactions with zero matches in the review output.

For a workbook with rates and payouts across tabs, try this in Jolene.pro: “For each payout, count the approved rate rows matching its plan and transaction date. Show the source cells for the rate when there is one match. List overlaps and gaps separately, and leave those rates blank.” The synthetic worksheet formulas were checked independently. A live Jolene.pro result was not verified.

1 comment

Leave a comment