79319054

Date: 2024-12-31 02:40:39
Score: 1
Natty:
Report link

Rather than using the .update method, try using .update_cell in order to prevent interpretation of the formula as a string:

def update_formulas(sheet, data):
    for idx in range(2, len(data) + 2):  
        formula = f"=B{idx}*C{idx}"  
        sheet.update_cell(idx, 4, formula)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nori