My data looks like below. I want to count consecutive blank cells till next non empty cell. My logic is to get output, when A2
contains data then it will return 0
but when A3
is blank then I expect 1
and continue to count blank cells incrementally.
Part_No Location Expected_Output
ABC123 North 0
South 1
XYZ123 East 0
South 1
West 2
PQR123 South 0
East 1
North 2
West 3
BROF-2 South 0
East 1
Hope someone will help me to solve my problem. Thanks.