excel - How to use same cell formula value as input for the same formula? -


i need solve this:

on excel cell a3 use custom vba formula =smoothticker(a1,a2) function must use it's a3 cell output input value

function smoothticker(ticker integer, increment integer)     if (ticker > smoothticker , ticker - smoothticker > increment)         smoothticker = ticker     else         smoothticker = smoothticker     end if  end function 

in case can't use smoothticker variable input value please help! thank you

does want?

private smoothtickervalue integer  function smoothticker(ticker integer, increment integer)     if (ticker > smoothtickervalue , ticker - smoothtickervalue > increment)         smoothtickervalue = ticker     end if     smoothticker = smoothtickervalue  end function 

the problem doing kind of thing excel doesn't calculate contiguous cells in order , doesn't recalculate cells unless inputs change - kind of calculation may not work expected.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -