Are they in a sequential order within your attribute table? And if so, is the pattern left to right, left to right.
Are all 1/4 million fields in one table?
It would be quite simple to produce a sequential sum in groupings of 5 if that was the case.
There are several means, but clarification would help