Assistance with a excel formula

Kthom019

New Member
Joined
May 16, 2017
Messages
46
I need the below formula to input the cost in column A based on the start month, in column C, and the number of periods in column B.

the formula in column D (m1) = =IFERROR(INDEX($A236,MATCH($C236,D$235,0)),0)
the formula in column E (m2) = =IFERROR(IF(D243=0,(INDEX($A243,MATCH($C243,E$235,0))/$B243),D243),0)

I do not want to exceed the total in column A. I hope I explained that correctly.

m1m2m3m4m5m6m7m8m9m10m11m12
29,647
2​
m3$ -$ -$ 14,824$ 14,824$ 14,824$ 14,824
3,330
5​
m5$ -$ -$ -$ -$ 666$ 666
2,191
3​
m2$ -$ 2,191$ 2,191$ 2,191$ 2,191$ 2,191
978
4​
m4$ -$ -$ -$ 245$ 245$ 245
$ -$ 2,191$ 17,015$ 17,259$ 17,925$ 17,925$ -$ -$ -$ -$ -$ -
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
How about
+Fluff v2.xlsm
ABCDEFGHIJKLMNO
1m1m2m3m4m5m6m7m8m9m10m11m12
229,6482m314,82414,82414,82414,824
31,3325m5666666
46,5733m22,1912,1912,1912,1912,191
57354m4245245245
Master
Cell Formulas
RangeFormula
A2:A5A2=SUM(INDEX(D2:O2,MATCH(C2,$D$1:$O$1,0)):INDEX(D2:O2,MATCH(C2,$D$1:$O$1,0)+B2-1))
 
Upvote 0
=SUM(INDEX(D2:O2,MATCH(C2,$D$1:$O$1,0)):INDEX(D2:O2,MATCH(C2,$D$1:$O$1,0)+B2-1))
Column should not have a formula. I may not have explained correctly then.

the formula is needed in columns D:O
I want to split the cost, which is column A, across the months, based on the start period in Column C, Column B is # of months for the splits.
(row 2 is saying split the amount in column A, across 2 months, starting in month 3 (M3)
 
Upvote 0
The costs are not starting in the correct columns. Example, in row 2, the cost should start in column 5.
 
Upvote 0
Oops, put the = in the wrong place, it should be
Excel Formula:
=IF(AND(COLUMNS($D$1:D$1)>=MATCH($C2,$D$1:$O$1,0),COLUMNS($D$1:D$1)<MATCH($C2,$D$1:$O$1,0)+$B2),$A2/$B2,0)
 
Upvote 0
Solution
Oops, put the = in the wrong place, it should be
Excel Formula:
=IF(AND(COLUMNS($D$1:D$1)>=MATCH($C2,$D$1:$O$1,0),COLUMNS($D$1:D$1)<MATCH($C2,$D$1:$O$1,0)+$B2),$A2/$B2,0)
This is absolutely perfect thank you so much. I know my explanation was not was not perfect at first, my bad. I was typing while in a meeting to create a template and you saved the day; much appreciated.:)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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