Hi RadzmarThanks for your prompt advice. Using resolvenodes does make the difference, but when I apply the if statement for checking whether Cell2 is equal to "CR" or not, the iTotal (from your example) kept on resetting it self, so I am not able to get the result I want.For example, if my table has...