Mr Excel Query
I currently have two formulas that I am trying to combine sothat the combined formula provides both outputs required
I wonder if anyone could assist on the basis of info provided below
The formal below are the 2 current versions I have in a cell W7 I would like to combine them to achieve both function from the one formula
AL7 = year of work
H7 = frequency
W6 = column year
T7 = work cost value (spread value so total divided by spreadperiod which is a cell S7)
=IF($AL7="",0,IF(AND($H7="N/A",$AL7=W$6),$T7,IFERROR(IF($AL7>W$6,0,((MOD(W$6-$AL7,$H7)=0)*$T7)),0)))
AL7 = year of work
H7 = frequency
W6 = column year
T7 = work cost value (spread value so total divided by spreadperiod)
S7 = smoothing period
=IF(AND(W$6>($AL7-1),W$6<($AL7+$S7)),$T7,0)
Can anyone help me combine the two formulas?
I currently have two formulas that I am trying to combine sothat the combined formula provides both outputs required
I wonder if anyone could assist on the basis of info provided below
The formal below are the 2 current versions I have in a cell W7 I would like to combine them to achieve both function from the one formula
- Formula 1 - this formula takes a value (£) and period (Years)and if they match the Year column [W] it applies the cost into that cell, ifthe frequency is every 5 years i.e. 5 it will then apply the cost in the nextperiod due. i.e. £7,500 in 2019 with a frequency of 5 will apply the £7,500cost into the 2019 column and then the 2024 column.
AL7 = year of work
H7 = frequency
W6 = column year
T7 = work cost value (spread value so total divided by spreadperiod which is a cell S7)
=IF($AL7="",0,IF(AND($H7="N/A",$AL7=W$6),$T7,IFERROR(IF($AL7>W$6,0,((MOD(W$6-$AL7,$H7)=0)*$T7)),0)))
- Formula 2 - I also have another formula which works for thiscell W7 which applies a different calculation, in this case the formula looksat the year and costs but also looks at a spread value which then spreads thecost over the period of time stated i.e. if it was 2019 with a spread of 3 itwould apply the value 0ver years 2019/2020/2021
AL7 = year of work
H7 = frequency
W6 = column year
T7 = work cost value (spread value so total divided by spreadperiod)
S7 = smoothing period
=IF(AND(W$6>($AL7-1),W$6<($AL7+$S7)),$T7,0)
Can anyone help me combine the two formulas?