If you're already using VBA to clear cells, then just add another line of code to put the formula back.
For example:
Change "X30" to the cell where you want the formula to go (where it was originally)![]()
Range("X30").Formula = "=INDEX(Index!$E$2:$AP$300, MATCH(A$2, Index!$A$2:$A$300, 0), ROW($A1))"
Regards, TMS
Bookmarks