list and count unique Excel 2013

apgmin

Board Regular
Joined
Mar 1, 2010
Messages
150
Office Version
  1. 2013
Platform
  1. Windows
In column A, I have a list of values from A2-A503, I fill these cells

In column B from Column B2 onwards I want to list the unique values from column A ( A2-A503 )

In column C from Column C2 onwards I want the nos. of repetitions
of the unique values listed from B2 onwards

PLEASE SEE THE FOLLOWING TABLE IN WHICH I MADE A REPRESENTATIVE TABLE
VALUE TO BE FILLED BY USERUNIQUE VALUESNo. OF OCCURRENCE
5005003
3503502
5004001
4002001
500
350
200
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Does it need to be formulas? You can get what you want much easier with a pivot table.
 
Upvote 0
How about

+Fluff New.xlsm
ABC
1
21041043
31001003
41071073
51021021
61101104
71041063
81061051
91051031
101001091
11100  
12110  
13110  
14110  
15106  
16106  
17103  
18109
19104
20107
21107
Main
Cell Formulas
RangeFormula
B2:B17B2=IFERROR(INDEX($A$2:$A$503,MATCH(0,COUNTIFS(B$1:B1,$A$2:$A$503)+($A$2:$A$503=""),0)),"")
C2:C17C2=IF(B2="","",COUNTIFS($A$2:$A$503,B2))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
If you do not have the UNIQUE FUNCTION available to you in 2013, then add a helper column.
IN cell B2
=COUNTIF($A$2:A2,A2)
In cell B3, copied down
=IF(COUNTIF($A$2:A3,A3)=1,COUNTIF($A$2:A3,A3)+MAX($B$2:B2),0)
In cell C2 copied down
=IFERROR(INDEX($A$2:$A$15,MATCH(ROWS($C$2:C2),$B$2:$B$15,0),1),"")
In cell D2 Copied down
=IF(C2<>"",COUNTIF($A$2:$A$15,C2),"")
1592154803218.png
 

Attachments

  • 1592153955355.png
    1592153955355.png
    100.8 KB · Views: 12
Upvote 0
Does it need to be formulas? You can get what you want much easier with a pivot table.
I am using Office 2013, Also need it to be a formula as the table is filled by staff at other location and emailed to me.
TRIED YOUR FORMULA AND WORKS PERFECTLY.

I wonder how you can make such formulas looks nothing less than Magic to me
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
If your values in column A are in fact numeric, and you want them in sorted order, you can use this shorter non-array formula:

Book5
ABC
1ListUnique ListCount
21041003
31001021
41071031
51021043
61101051
71041063
81061073
91051091
101001104
11100  
12110  
13110  
14110  
15106  
16106  
17103  
18109 
19104 
20107 
21107 
22
Sheet14
Cell Formulas
RangeFormula
C2:C17C2=IF(B2="","",COUNTIFS($A$2:$A$503,B2))
B2:B21B2=IFERROR(SMALL($A$2:$A$503,SUM(C$1:C1)+1),"")
 
Upvote 0
If your values in column A are in fact numeric, and you want them in sorted order, you can use this shorter non-array formula:

Book5
ABC
1ListUnique ListCount
21041003
31001021
41071031
51021043
61101051
71041063
81061073
91051091
101001104
11100  
12110  
13110  
14110  
15106  
16106  
17103  
18109 
19104 
20107 
21107 
22
Sheet14
Cell Formulas
RangeFormula
C2:C17C2=IF(B2="","",COUNTIFS($A$2:$A$503,B2))
B2:B21B2=IFERROR(SMALL($A$2:$A$503,SUM(C$1:C1)+1),"")
Just wanted to applaud this method... dancing sooooo close to a circular error without getting singed.
 

Attachments

  • 1592155094483.png
    1592155094483.png
    12 KB · Views: 12
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,716
Members
452,995
Latest member
isldboy

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