Counting unique shipments

karibuckeye

New Member
Joined
Mar 9, 2016
Messages
4
I need a way to count the unique numbers in this column in a pivot table. Ideally I do not want sort the data in the column either. Is this possible? So I want to see in a pivot table the count of unique shipments is 5 (12,25,26,27,28).

Number
12
12
25
26
27
28
27
12

<tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Yea i'm using 2010 :/

Is there a formula I can put in my dataset so that my data looks this:


Number Unique Count
12 1
12 0
25 1
26 1
27 1
28 1
27 0
12 0

<tbody>
</tbody>
 
Upvote 0
You could give this a try, change the range to suit.

Code:
=SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10))

I hope this helps!
 
Upvote 0
That didn't work :( That formula should work if I use a range right? So I'm typing in =SUMPRODUCT(1/COUNTIF(A:A,A:A)); i'm getting an error? Does column A need to be formatted as a value or text?
 
Upvote 0
That didn't work :( That formula should work if I use a range right? So I'm typing in =SUMPRODUCT(1/COUNTIF(A:A,A:A)); i'm getting an error? Does column A need to be formatted as a value or text?

That formula will only work on a specified range that doesn't include any blank or empty cells.
 
Upvote 0
Oh ok, well because month over month the range will change I'm not sure this is the best formula for me then?

Any other ideas for me to try?

I really appreciate the help!
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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