Count the number of columns with nonblank cells excel formula -
i'm trying count number of columns contain text. example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
x x x
xxxxxx xxx
xxxxxxxxxxxxxxxxxxxxxxxxx
something should return "13". doesn't matter how many cells contain text in column, care how many columns contain text. suggestions?
while isn't sophisticated coding or anything, has worked me in past.
at top of each column (above header, somewhere not in way , won't need use) add counta() formula tells how many cells in column not empty.
put inside if statement. =if(counta("yourcolumnrange") > 0, 1, 0)
then, ever need it, sum results of each of formulas columns , give total number of columns looking for.
if don't want display "1" or "0" @ top of each column, change text color in cells match background (default being change text color white).
let me know if of needs clarification.
Comments
Post a Comment