I would like to use counta
function to count rows that are not empty based on column A or B.
In other words.. if either column A
or B
not empty, it should be counted.
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityTry this:
=COUNTA(IFERROR(FILTER(ROW(A:A),A:A&B:B<>"")))
ROW(A:A) gives us "something" to count.
By concatenating each row-cell of A:A with the corresponding row-cell of B:B, we form one string, which we can evaluate as one string and thus count as one string.
I used this and solved as well
=countifs(A1:A,"<>")+countifs(A1:A,"",B1:B,"<>")