Excel formula help

lusov

New Member
Joined
May 17, 2017
Messages
5
Hi,

I have a list of 70 clients with contract amounts and start dates on one tab. I need to make projection for 12 months in a way that for each customer no more than 15,000 monthly revenues is included in the forecast. For instance if the contract amount is 42,000 USD then I should account for 15,000 first month, 15,000 second and 12, 000 last month. Can you, please, help me with the formula?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Is something like this table what you are after? If so, enter the following formula in B1,

Code:
=IF(A1>15000,15000,A1)

and this one in C1,

Code:
=IF($A1-SUM($B1:B1)>15000,15000,$A1-SUM($B1:B1))

Then, copy C1 and paste it down the column.

Now, copy B1 to the end of the column and paste down the row.

[TABLE="width: 576"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: right"]98765[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]8765[/TD]
[TD="class: xl65, width: 64, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]32104[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]2104[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]66592[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]6592[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]15001[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]14999[/TD]
[TD="class: xl65, align: right"]14999[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Is something like this table what you are after? If so, enter the following formula in B1,

Code:
=IF(A1>15000,15000,A1)

and this one in C1,

Code:
=IF($A1-SUM($B1:B1)>15000,15000,$A1-SUM($B1:B1))

Then, copy C1 and paste it down the column.

Now, copy B1 to the end of the column and paste down the row.

[TABLE="width: 576"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: right"]98765[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]15000[/TD]
[TD="class: xl65, width: 64, align: right"]8765[/TD]
[TD="class: xl65, width: 64, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]32104[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]2104[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]66592[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]6592[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]15001[/TD]
[TD="class: xl65, align: right"]15000[/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]14999[/TD]
[TD="class: xl65, align: right"]14999[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]


Hi Thanks!

I have 70 clients and would prefer not having a table. Is it possible to do this through one formula?
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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