Calculate attribute indices with an offset value to rid similar codes