Если в листе Excel определенное значение не найдено, добавьте ноль к использованию openpyxl
#python #openpyxl Вопрос: files = glob.glob (r'C:testPhase 1A*.xlsm') for file in files: print(file) wb = openpyxl.load_workbook(filename=file,data_only=True) ws = wb.active for row in ws.iter_rows(): for cell in row: if cell.value ==…