Hui,
Now I can understand what you say,
Look at this scenario:
If the G6 has a value like 5 and the result of (INDEX(d,,G7)=G6) is false since the intersection of first row and column 4 has a value other than 5. Then the result of "G6" +
(INDEX(d,,G7)=G6) will be 5. Since G6 is 5 and Index(d,, G7)=G6 is false equal to zero.
Is this right?
Guity