SOLVED

formula to count visible cells with data only

Copper Contributor

What formula can I use to carry out the above in excel 

2 Replies
best response confirmed by Hans Vogelaar (MVP)
Solution

@Iqbal_Khan Look into the AGGREGATE function. Use 2 or 3 in the first argument (COUNT or COUNTA) and 5 in the second (ignore hidden), and then the range you want to count. Such a formula could look like this (just an example):

=AGGREGATE(2,5,A2:A50)

Thank you Riny, works like a charm
1 best response

Accepted Solutions
best response confirmed by Hans Vogelaar (MVP)
Solution

@Iqbal_Khan Look into the AGGREGATE function. Use 2 or 3 in the first argument (COUNT or COUNTA) and 5 in the second (ignore hidden), and then the range you want to count. Such a formula could look like this (just an example):

=AGGREGATE(2,5,A2:A50)

View solution in original post