Answer the question
In order to leave comments, you need to log in
openpyxl. How to count the number of elements in a particular column without a loop in EXEL?
Answer the question
In order to leave comments, you need to log in
Just like using the list generator, check the number of certain elements in the list by measuring the length of the filtered list
. An empty cell in the openpixel is None
l=[wb['Sheet1']
['B'+str(row)].value for row in range (2, wb['Sheet1'].max_row+1)
if (wb['Sheet1']['B'+str(row)].value)!=None]
len (l)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question