I need to count the number of used rows in a range. The two problems are that I can't use VBA -- must use a formula, and I can't be sure that any particular cell in the range will have any information in it.
Right now I'm using:
=IF(COUNTA(OFFSET(A17,1,0,5000,10))=0,0,SUM(COUNTA(OFFSET(A17,1,0,5000,10))/COUNTA(OFFSET(A17,1,0,1,10))))
but this only works if all rows have the same number of used cells. I would use nested ifs, but there are ten columns and you can only use 7 nested ifs.
Any ideas?
Right now I'm using:
=IF(COUNTA(OFFSET(A17,1,0,5000,10))=0,0,SUM(COUNTA(OFFSET(A17,1,0,5000,10))/COUNTA(OFFSET(A17,1,0,1,10))))
but this only works if all rows have the same number of used cells. I would use nested ifs, but there are ten columns and you can only use 7 nested ifs.
Any ideas?