Excel has been dryly noted as the most popular functional programming language before: https://www.infoworld.com/article/3033912/functional-languag...
In Excel you can't modify existing state in a cell, but only transform and output the results in a new cell.