check cell empty excel openpyxl code example
Example 1: excel check if cell not empty
IF(A1<>"","Not empty","Empty")
Example 2: how to check if a cell is empty in openpyxl
# This checks if the cell has a value, or if it isn't empty then runs your code
if cell.value:
continue
# OR
if not cell.value == None:
continue