I am trying to apply an excel formula that compares sheets 1 & 2 to determine available price updates, once determined applies the new price on sheet 3.

The formula is referenced in this article: <https://www.get-digital-help.com/automate-excel-update-list-with-new-values-array-formula>.

The script takes too long 15-20 minutes to process and doesn't apply the formula down the sheet.

Please help!

```
import openpyxl

wb = openpyxl.load_workbook('New-Price.xlsx', read_only=False, keep_vba=True)
ws = wb['Sheet3']

for i, cellObj in enumerate(ws['C2:C'+str(ws.max_row)],2):
    cellObj[0].value = "=IF(ISERROR(MATCH(A2, Sheet2!$A$2:$A$2001, 0)), INDEX(Sheet1!$B$2:$B$5000, MATCH(A2, Sheet1!$A$2:$A$5000, 0)), INDEX(Sheet2!$B$2:$B$2001, MATCH(A2, Sheet2!$A$2:$A$2001, 0)))".format(i)
    wb.save('New-Price.xlsm')

```