Much data analytics work is about summarizing data. Averages, totals, highest values, things like that.
A summarizing program has at least one loop and index variable. The loop changes the index, so it first points to one cell, then the next, then the next, and so on. Inside the loop, code does whatever processing is needed.