It helps if you state what's happening, for example you never said anything was 'behaving incorrectly', all you were asking was "is the logic right" and didn't provide any sample data. If you'd provided sample data this would have been answered in the first example. And this is why I said the code is the same, but I can't answer if the logic was correct, because it clearly wasn't....
@Juli13 wrote: Thank you so much ballardw! I couldn't understand why code 1 was behaving incorrectly. They are in % format. Thanks!
... View more