Count visible cell and ignore zero number

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,046
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hello all,

i need some formula, how to count data with visible cell only and WITHOUT/IGNORE ZERO NUMBER (0)

for example :

row (after filter and visible cell only)
data
1
2
5
0
6
0
12
4
15
1
count
3 (DESIRED RESULT

<tbody>
</tbody>

i tired with subtotal(3,.......) , but not fully working....

COULD YOU HELP ME, TO FIGURE IT OUT??

THANKS FOR YOUR HELPING....


M.SUSANTO
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
thanks cyrillbrd,..your formula is not fully working..

i mean at first...filter data then highlighted visible cell only and count..

any ideas??
 
Upvote 0
thanks cyrillbrd,..your formula is not fully working..

i mean at first...filter data then highlighted visible cell only and count..

any ideas??

please clarify your objective.
in what sense the formula did not work?
what do you mean by 'filter' and 'highlight visible cells only'?
 
Upvote 0
ADVERTISEMENT
cyrillbrd, I MEANS, ONLY VISIBLE CELL WITHOUT ZERO NUMBER/BLANK MUST BE COUNT IT....
 
Upvote 0
muhammad susanto, capital letters not needed for comprehension.

If you wish to count all visible cell excluding hidden cells and zero kindly consider =COUNT(IF(SUBTOTAL(102,OFFSET(L2,ROW(L2:L6)-ROW(L2),0,1)),IF(L2:L6,L2:L6))) Ctrl + Shift + Enter not just Enter on a PC or Command + Return on a MAC.
 
Upvote 0
ADVERTISEMENT
cyrillbrd, thanks,

i am happy now....
 
Upvote 0

Forum statistics

Threads
1,196,323
Messages
6,014,639
Members
441,833
Latest member
Rangerreeve

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top