14 lines
461 B
Python
14 lines
461 B
Python
import openpyxl
|
|
|
|
path = r"D:\DashboardCPSP\rework\dashboard-cpsp\backup\Laporan_Akhir-Siklus_Sukawarna_Kandang-Atas_Akhir-Siklus_2026-05-22_sd_2026-07-09.xlsx"
|
|
|
|
wb = openpyxl.load_workbook(path, data_only=True)
|
|
|
|
for sheet in ["Feed In", "Feed Use"]:
|
|
ws = wb[sheet]
|
|
print(f"\n===== SHEET: {sheet} =====")
|
|
for row in ws.iter_rows():
|
|
vals = [(c.coordinate, c.value) for c in row if c.value is not None]
|
|
if vals:
|
|
print(vals)
|