Forum Discussion
Greg Bonaparte
Feb 17, 2019Iron Contributor
Create a macro saying...
IF S30 > 0 THEN U30 = S30 IF S31 > 0 THEN U31 = S31 ... and so on TO S629 Can someone help?
SergeiBaklan
Feb 17, 2019Diamond Contributor
That could be
=IF((S30 > 0)*(R30 > 0), S30 ,"")
in U30, and drag it down
corujox
Feb 17, 2019Copper Contributor
Not use $ because is for static cell address
- Greg BonaparteFeb 17, 2019Iron Contributor
Yes, I think I did what you describe here. I put =IF(($S30 > 0)*($R30 > 0), $U30=$S30,"") in an empty column and pasted it down. I believe it failed because it was functioning prematurely (before the full algorithm required its results). I need this to run near the end of a long process. So it needs to be a "CALL" from a macro I think.
- Greg BonaparteFeb 17, 2019Iron Contributor
In addition, each time the IF function enters a value into U30, the new U30 value may modify the value in U31 and so on. Therefore the function must execute, then wait for U31 change, before it increments to next line down.