How do I use formula for calculate commission based on trip count based.

riyajusg

New Member
Joined
Mar 18, 2021
Messages
8
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
We have provide delivery/transport services, also we follow the excel sheet for daily trip details. End of the day, we have to pay commission to drivers based on Trip count.
1616061342562.png



We have some commission slaps based transport types like as follows,

1616061311618.png


we should calculate Commission report like as below,

1616061382579.png


Please help us to how to do it and how the formula can use to solve it..

Thanks in advance
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
For the Car Commision you can use VLOOKUP. Set the 4th argument to TRUE and you can find values between.
Change the first column in:
1
7
8
11
For the Bike Commission you can use INDEX and MATCH. With MATCH you can searc two fileds in two rows (or columns) with the symbol &
Change the titles in unigue titles.
Example:
first row: area1
second row: weekday
(third row: own bike)
 
Upvote 0
An example with the hours table and the commission table have a different structure (columntitles).
When this two tables have the same structure then you can simple refer to the hours with =B4
In two different tables you have to search for the hours.

Map2
ABCDEFGHIJ
1area 1area 2area 1area 2area 1area 2area 1area 2
2weekdayweekdayweekdayweekdayweekendweekendweekendweekend
3own bikeown bikecompany bikecompany bikeown bikeown bikecompany bikecompany bikecar
4driver 145632
5driver 2257
6driver 31810
7
8Kolom1weekdayweekdayweekendweekendcareach
9own bikecompany bikeown bikecompany bike15
10area 11020304077,142857143
11area 25060708083
12area 340506040117
13
14area 1area 1area 1area 1area 2area 2area 2area 2
15weekdayweekdayweekendweekendweekdayweekdayweekendweekend
16own bikecompany bikeown bikecompany bikeown bikecompany bikeown bikecompany bikecar
17driver 140100180120000010
18driver 200001003000050
19driver 310000005608000
Sheet1
Cell Formulas
RangeFormula
H10H10=50/7
B17:I19B17=INDEX($B$4:$I$6,MATCH($A17,$A$4:$A$6,0),MATCH(B$14&B$15&B$16,INDEX($B$1:$I$1&$B$2:$I$2&$B$3:$I$3,0),0))*INDEX($B$10:$E$12,MATCH(B$14,$A$10:$A$12,0),MATCH(B$15&B$16,INDEX($B$8:$E$8&$B$9:$E$9,0),0))
J17:J19J17=IFERROR(VLOOKUP($A17,$A$4:$J$6,10,FALSE)*VLOOKUP(VLOOKUP($A17,$A$4:$J$6,10,FALSE),$G$9:$H$12,2,TRUE),0)
 
Upvote 0
An example with the hours table and the commission table have a different structure (columntitles).
When this two tables have the same structure then you can simple refer to the hours with =B4
In two different tables you have to search for the hours.

Map2
ABCDEFGHIJ
1area 1area 2area 1area 2area 1area 2area 1area 2
2weekdayweekdayweekdayweekdayweekendweekendweekendweekend
3own bikeown bikecompany bikecompany bikeown bikeown bikecompany bikecompany bikecar
4driver 145632
5driver 2257
6driver 31810
7
8Kolom1weekdayweekdayweekendweekendcareach
9own bikecompany bikeown bikecompany bike15
10area 11020304077,142857143
11area 25060708083
12area 340506040117
13
14area 1area 1area 1area 1area 2area 2area 2area 2
15weekdayweekdayweekendweekendweekdayweekdayweekendweekend
16own bikecompany bikeown bikecompany bikeown bikecompany bikeown bikecompany bikecar
17driver 140100180120000010
18driver 200001003000050
19driver 310000005608000
Sheet1
Cell Formulas
RangeFormula
H10H10=50/7
B17:I19B17=INDEX($B$4:$I$6,MATCH($A17,$A$4:$A$6,0),MATCH(B$14&B$15&B$16,INDEX($B$1:$I$1&$B$2:$I$2&$B$3:$I$3,0),0))*INDEX($B$10:$E$12,MATCH(B$14,$A$10:$A$12,0),MATCH(B$15&B$16,INDEX($B$8:$E$8&$B$9:$E$9,0),0))
J17:J19J17=IFERROR(VLOOKUP($A17,$A$4:$J$6,10,FALSE)*VLOOKUP(VLOOKUP($A17,$A$4:$J$6,10,FALSE),$G$9:$H$12,2,TRUE),0)
Hi @mart37

Thank you for your great assistance, As I have encounter from your calculation formula shows wrong value, If Trip count above 11..
Hereby I have attached calculation method for your better view,

pls help me fix this issue..

Thanks in advance

1616088268254.png
 
Upvote 0
a simple solution:
Map2
ABCDEFGHIJ
14area 1area 1area 1area 1area 2area 2area 2area 2
15weekdayweekdayweekendweekendweekdayweekdayweekendweekend
16own bikecompany bikeown bikecompany bikeown bikecompany bikeown bikecompany bikecar
17driver 140100180120000010
18driver 200001003000080
19driver 31000000560800103
20
21
22car tripcommission
2315
24210
25315
26420
27525
28630
29780
30883
31986
321089
331196
3412103
3513110
3614117
3715124
Sheet1
Cell Formulas
RangeFormula
B17:I19B17=INDEX($B$4:$I$6,MATCH($A17,$A$4:$A$6,0),MATCH(B$14&B$15&B$16,INDEX($B$1:$I$1&$B$2:$I$2&$B$3:$I$3,0),0))*INDEX($B$10:$E$12,MATCH(B$14,$A$10:$A$12,0),MATCH(B$15&B$16,INDEX($B$8:$E$8&$B$9:$E$9,0),0))
J17:J19J17=IFERROR(VLOOKUP(VLOOKUP($A17,$A$4:$J$6,10,FALSE),$A$23:$B$37,2,TRUE),0)
 
Upvote 0
I have solved above issue using following method,

Function Used
MEDIAN
MIN
MAX

Methods
Trip Count is between = 1 to 6 --> Min Function used
Trip Count is = 7 --> Fixed Value
Trip Count is between 8 to 10 --> Fixed value + Median()
Trip Count is 11 and above --> Fixed Value+ Median()+Max()

We got exact what we required using above method,

However, Thanks for your great support and assistance.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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