Auto sum numbers based on previous number and a given number

daddydool

New Member
Joined
May 7, 2018
Messages
2
Hi,
I have a delivery company and want to create an incentive tracking sheet. My drivers will start accumulating fixed commissions after a certain number of deliveries (below chart);
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
Driver Incentive # of OrdersCommission per orderPayout
10AED1.00AED1.00
11AED2.00AED3.00
12AED3.00AED6.00
13AED4.00AED10.00
14AED5.00AED15.00
15AED6.00AED21.00
16AED7.00AED28.00
17AED8.00AED36.00
18AED9.00AED45.00
19AED10.00AED55.00
20AED10.00AED65.00
21AED10.00AED75.00
22AED10.00AED85.00
23AED10.00AED95.00
24AED10.00AED105.00
25AED10.00AED115.00

<tbody>
</tbody>

What I would like to do is at the closing of the day when entering the total deliveries the cumulative amount to populate in the incentive column of my sheet.
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
DriverDriver IDLocationDateTotal DeliveriesEligibale for incentiveDriver Incentive
Nadir Rafique1096Dubai01/05/201822yes85

<tbody>
</tbody>

when entering the amount of 22 or any other total in the total deliveries I would like to have driver incentive auto calculate based on the cumulative incentives in the payout info.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,

Based on your description:


Book1
ABCDEFG
1Driver Incentive # of OrdersCommission per orderPayout
210AED1.00AED1.00
311AED2.00AED3.00
412AED3.00AED6.00
513AED4.00AED10.00
614AED5.00AED15.00
715AED6.00AED21.00
816AED7.00AED28.00
917AED8.00AED36.00
1018AED9.00AED45.00
1119AED10.00AED55.00
1220AED10.00AED65.00
1321AED10.00AED75.00
1422AED10.00AED85.00
1523AED10.00AED95.00
1624AED10.00AED105.00
1725AED10.00AED115.00
18
19
20DriverDriver IDLocationDateTotal DeliveriesEligibale for incentiveDriver Incentive
21Nadir Rafique1096Dubai1/5/201822yesAED85.00
22Nadir Rafique1096Dubai1/5/201822yes85
Sheet42
Cell Formulas
RangeFormula
G21=IFERROR(VLOOKUP(E21,A2:C17,3,0),0)
G22=IFERROR(MID(VLOOKUP(E21,A2:C17,3,0),4,15)+0,0)


Use G21 formula if you want to keep AED in front of result.
Use G22 formula if you just want the number.
 
Upvote 0
Hi jtakw,
Thank you so much.

Hi,

Based on your description:

ABCDEFG
1Driver Incentive # of OrdersCommission per orderPayout
210AED1.00AED1.00
311AED2.00AED3.00
412AED3.00AED6.00
513AED4.00AED10.00
614AED5.00AED15.00
715AED6.00AED21.00
816AED7.00AED28.00
917AED8.00AED36.00
1018AED9.00AED45.00
1119AED10.00AED55.00
1220AED10.00AED65.00
1321AED10.00AED75.00
1422AED10.00AED85.00
1523AED10.00AED95.00
1624AED10.00AED105.00
1725AED10.00AED115.00
18
19
20DriverDriver IDLocationDateTotal DeliveriesEligibale for incentiveDriver Incentive
21Nadir Rafique1096Dubai1/5/201822yesAED85.00
22Nadir Rafique1096Dubai1/5/201822yes85

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

Worksheet Formulas
CellFormula
G21=IFERROR(VLOOKUP(E21,A2:C17,3,0),0)
G22=IFERROR(MID(VLOOKUP(E21,A2:C17,3,0),4,15)+0,0)

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

<tbody>
</tbody>



Use G21 formula if you want to keep AED in front of result.
Use G22 formula if you just want the number.
 
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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