Selected Answer
Akash
You get a circular reference since the total in H2 includes D2 whose formula is
=(H2*40%)
which refers back to the total H2.
To fix this, change D2 to
=(12000*40%)
(a % of a fixed number) or some multiple of another cell, say =(G2*5).
REVISION 1: If the value of H2 is already known per employee (say an existing Annual Salary of 1,000,000 rupees) and the gross needs to be 40% of that, circular reference can be avoided by:
1) Copying the known salary to column J say (hidden in my file attached)
2) Changing the formula for gross salary in D2 to be
=J2*40%
so 40% of a cell
outside the range of the sum in H2 (
=SUM(D2:G2) )
3) Adjusting cell E2, F2 or G2 so the sum in H2 is the same as J2. In my case I changed the formula for HRA in E2 to
=J2-(D2+F2+G2)
but it's your choice.
4) Once you've done that, you could copy column D (and others) and Paste/Values to fix the values. Column J could then be deleted.