Forum Discussion

Chris Buller's avatar
Chris Buller
Copper Contributor
Apr 22, 2018
Solved

Spreading a value over preceding and following cell or TRUE value when IF criteria met

I am making a cost model and I need to smooth out the data by distributing the value in percentages across the preceding and following cell; ie. E4 has a value of 300 - I want the value of E4 to be 6...
  • Detlef_Lewin's avatar
    Apr 22, 2018

    Chris,

     

    either you described to wrongly or I understood it wrongly.

     

    =IF(B$2<$A3-1,0,SUM((MOD(B$2-1,$A3)+1={3;2;1})*{0.6;0.2;0.2}))*$B$19
    =IF(B$2<$A4-1,0,SUM((MOD(B$2-1,$A4)+1={5;4;1})*{0.6;0.2;0.2}))*$B$20
    =IF(B$2<$A5-1,0,SUM((MOD(B$2-1,$A5)+1={7;6;1})*{0.6;0.2;0.2}))*$B$21

     

Resources