add spreadseet index calculation problem