Count Formula

Katich

Board Regular
Joined
Jan 22, 2008
Messages
154
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I need a formula to give me a count of all items in a column, ignoring hidden rows and duplicate values. Thank you in Advance!

ABCDEFGHIJ
1Total PO's 4
25520
34580
45520
51825
64890
74580

<tbody>
</tbody>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try:

=SUM(SIGN(FREQUENCY(IF(SUBTOTAL(103,OFFSET(A2,ROW(A2:A7)-ROW(A2),0,1))>0,A2:A7),A2:A7)))

with Control+Shift+Enter.

This assumes they are actual numeric values. If you have text (PO1234), we'll need to tweak that a bit:

=SUM(SIGN(FREQUENCY(IF(SUBTOTAL(103,OFFSET(A2,ROW(A2:A7)-ROW(A2),0,1))>0,MATCH(A2:A7,A2:A7,0)),ROW(A2:A7)-ROW(A2)+1)))
 
Last edited:
Upvote 0
Yeah, i may have numbers like the following

PO1234
7234
5678-T
 
Upvote 0

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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