02-17-2019 06:59 AM
02-17-2019 07:06 AM
IF S30 > 0 & IF R30 > 0 THEN U30 = S30
IF S31 > 0 & IF R31 > 0 THEN U31 = S31 ... and so on TO S629
02-17-2019 07:50 AM
Do you need a macro or just a formula which returns some values to U30:U629. If macro I guess it keeps previous value in the range as it was and change if condition is met. If formula what shall be returned if condition isn't met?
02-17-2019 08:20 AM
Hello again Sergei
I'm not sure I know how to answer your question due to being very new in "macro speak". I can tell you that whenever a value is entered into the U30 thru U629 column, the value in T30 thru T629 decreases. Eventually the S30 column will remain zero. Not sure if this helps but here are the formula and current macro of the referenced columns:
"U30" EMPTY CELL (currently waiting for manual input to trigger the macro below)
Private Sub Worksheet_Change(ByVal Target As Range)
If Not (Application.Intersect(Range(" U30:U600"), Target) Is Nothing) Then
If MsgBox("Select 'No' until ADDITIONAL SHARES are manually entered. Have you finished manually entering 'ADDITIONAL SHARES' ?", vbQuestion + vbYesNo, "") = vbYes Then
02-17-2019 08:43 AM
=IF((S30 > 0)*(R30 > 0), S30 ,"")
While this worked, It deleted the formulas of column U30, So I think maybe a macro is required?
This also has to run after many other macros and formulas have run. So It has to be triggered from a macro I think.
02-17-2019 08:58 AM
I have opened several conversations, each worded differently, but no one so far has been able to assist. I'm hoping that the language I'm using is not the reason no one has helped. Thank you however for your efforts.
02-17-2019 10:31 AM
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.
02-17-2019 10:40 AM
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.
by realst8 on June 03, 2020
by AraliAlvarado on June 03, 2020
by Ingeborg Hawighorst on May 13, 2020
by cuong on April 08, 2020