Hi Raj ,
This is a commonly encountered situation ; you want that Q2 should always be equal to F2.
F2 is the result of adding two values in D2 and E2 ; the value in D2 is a data entry value , which might or might not have decimal places. The value in E2 is through a formula which has just 2 values 0 or 20000. However , the formula in F2 ensures that the output in F2 will always be an integer.
Q2 is the sum of values in J2 through P2 , where each value is a calculated value being rounded off to result in an integer value.
It is clear that when so many values are being calculated through formulae , there is no guarantee that the summation of all the values will result in a desired value.
What is to be done to ensure that this happens is that one of these 7 values will need to be calculated as equal to F2 - SUM(the other 6 values) ; this is the only way you can be sure that the values in column Q will always equal the values in column F.
You decide which of these values will be that value ; all of the values such as Basic , DA , HRA , Conveyance and Outstation Allowance appear to be round figures ; thus the only candidates are Tiffin Allowance and Medical Allowance ; if either of these is calculated using the above technique , you can ensure that the values in columns Q and F will always match.
Narayan