I have a codes with a formula that a variable would add on to itself along with another variable. It most cases it works like a charm.
However it was very bizarre that it didn’t work in one instance and I can’t fingure our why.
Example of the formula is
totval = totval + varA
varA keeps changing as we go through the loop.
In the end it gives wrong number aggregation and right now, I don’t have a way to go around or fix it.
However if you use at the end for the one that doesn’t add on,
app = totval + varA
app would have the correct total.
However if you have it like
totval = app it doesn’t add the last value.
Please advise !