import openpyxl wb=openpyxl.load_workbook("한국임업진흥원.xlsx") ws=wb.active print("sheet:",ws.title,"max_row:",ws.max_row) for r in range(1,ws.max_row+1): vals=[] for c in range(2,17): # B..P v=ws.cell(r,c).value if v is not None and str(v).strip()!="": vals.append(f"{openpyxl.utils.get_column_letter(c)}={v}") print(r, " | ".join(vals))