Allocate Yearly Cost Across a Different # of Months for Each Record

Kclynn

Board Regular
Joined
Jan 23, 2020
Messages
66
Office Version
  1. 365
Platform
  1. Windows
Hello,
I have figured out how to allocate the cost across the different months but I want the very next cell in the array to have a different calculation based sum of the array. I am sure that I am not explaining this well. Example: I want the number in a cell (say 200,000) to be allocated over duration indicated in a cell (duration 7) then the very next cell (8th month) to but the sum of the 7 months array subtracted from the cell holding the 200,000.

Here are my formulas:
=IF(COLUMNS($R68:R68)>$P68,"",($I68*0.64/$P68)) This is in the first 7 cells
=I68-(SUM(R68:V68)) this is in the 8 cell

Is there a way to combine this so it would be automatically calculated no matter what the duration number is.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hey, I hope I am understanding this correctly,

Is this what you are after?

TestSheet
IJKLMNOPQRSTUVWXYZAA
68200000718285.7118285.7118285.7118285.7118285.7118285.7118285.7172000
69250000917777.7817777.7817777.7817777.7817777.7817777.7817777.7817777.7817777.7890000
70285000445600456004560045600102600
Sheet1
Cell Formulas
RangeFormula
R68:Y68,R70:V70,R69:AA69R68=IF(TRANSPOSE(ROW(INDIRECT("$1:$"&$P68+1)))<=$P68,($I68*0.64/$P68),$I68-$P68*($I68*0.64)/$P68)
Dynamic array formulas.


Also, wouldn't the final answer always be equal to 0.36*I68? As the first set of numbers are n-sized multiples of 64% (summing to 64%)
 
Upvote 0
Hey, I hope I am understanding this correctly,

Is this what you are after?

TestSheet
IJKLMNOPQRSTUVWXYZAA
68200000718285.7118285.7118285.7118285.7118285.7118285.7118285.7172000
69250000917777.7817777.7817777.7817777.7817777.7817777.7817777.7817777.7817777.7890000
70285000445600456004560045600102600
Sheet1
Cell Formulas
RangeFormula
R68:Y68,R70:V70,R69:AA69R68=IF(TRANSPOSE(ROW(INDIRECT("$1:$"&$P68+1)))<=$P68,($I68*0.64/$P68),$I68-$P68*($I68*0.64)/$P68)
Dynamic array formulas.


Also, wouldn't the final answer always be equal to 0.36*I68? As the first set of numbers are n-sized multiples of 64% (summing to 64%)


Holy cow!
Yes, I think you understood me, that's amazing in itself, I will try it. Thank you so much.
 
Upvote 0
Holy cow!
Yes, I think you understood me, that's amazing in itself, I will try it. Thank you so much.

What you are showing is what I am after. I must be missing something I copy and paste the formula but it's not working for me. Gives me the same number all the way across. What am I misunderstanding?
 
Upvote 0
Hard to tell without a visual aid, do you have the XL2BB add-in ? If so can you use that to show me exactly what you have done?

It should give the same number in all of the columns EXCEPT the last one which is essentially 36% of the original number
 
Upvote 0
I'm sorry not that proficient in excel I don't know what XL2BB add-in is? But I will google it.
 
Upvote 0
Here is my try with XL2BB

ASRS Generic Dual Mast Spares 2020_3_26.xlsx
CDEFGHIJKLMNOPQRSTUVWXY
55StatusTypeSalesmanJobAccountSourceSellTotal G.M.RecognizeFunded%BookActualJanFebMarAprMayJuneJulyAug
56StatusTypeSalesmanJobAccountSourceSellTotal G.M.RecognizeFunded%BookMos.DecJanFebMarAprMayJuneJulyAug
68DUTPMagna - HP, Move GM BuildPC300,0000Y20%10/19538,40038,40038,40038,40038,400108,000  
69DIHRaymond Handling - UltraBotSC200,000200,00010%10/19728,57128,57128,57128,57128,57128,57128,571 
Projected Margins 11x17 (2)
Cell Formulas
RangeFormula
L68L68=IF($C68<>"D",K68,0)
R68R68=IF(TRANSPOSE(ROW(INDIRECT("$1:$"&$P68+1)))<=$P68,($I68*0.64/$P68),$I68-$P68*($I68*0.64)/$P68)
X68:Y68,S68:V68S68=IF(COLUMNS($R68:S68)>$P68,"",($I68*0.64/$P68))
W68W68=I68-(SUM(R68:V68))
R69:Y69R69=IF(COLUMNS($R69:R69)>$P69,"",$I69/$P69)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Q139:AV147,Q60:AV135Expression=$N60 >= 50%textNO
N60:N135,N137:N147Cell Value>=50textNO
Cells with Data Validation
CellAllowCriteria
E57:E139ListBJ,TP,H,CS,RP,RS
H57:H69ListK,M,AMH,PC,SC
 
Upvote 0
Hmm, it seems as if you don't have dynamic array functions, can you see if you have access to a function called unique?
 
Upvote 0
Hmm, it seems as if you don't have dynamic array functions, can you see if you have access to a function called unique?
I am not seeing a function called unique. Hmm what does that mean?
 
Upvote 0
I think the UNIQUE function is exclusive to O365 insider members currently and won't be released for a few months if I am correct.

So if you had months number = 7, would you then fill Jan-Jul with figures, and put the final formula in for August?
 
Upvote 0

Forum statistics

Threads
1,214,414
Messages
6,119,373
Members
448,888
Latest member
Arle8907

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