Counting duplicate values in column

Romano_odK

Active Member
Joined
Jun 4, 2020
Messages
380
Office Version
  1. 365
Platform
  1. Windows
Good morning,

I would like to count the double values in this column with a formula. How can I do that?
Thank you for your time.

Romano


XML artikel import met Item refresh 1.05.xlsm
B
8168712759036033
8178712759036057
8188712759036040
8198712759036064
8208712759036071
8218712759076602
8228712759342004
8238712759341007
8248712759077890
8254041271002016
8264260385343680
8274041271002023
8284260385343703
8294041271002047
8304260385343727
8314041271002054
8324260385343741
8334041271040858
8344260385343765
8354041271040865
8364260385343789
8374041271002061
8384260385343802
8394041271002085
8404260385343826
8414041271002092
8424260385343840
8434041271044085
8444260385343864
8454041271044092
8464260385343888
8474041271044108
8484260385343901
8494041271044115
8504260385343925
8514041271044122
8524260385343949
8534041271044139
8544041271002108
8554260385343987
8564041271002115
8574260385344007
8584041271002122
8594260385344021
8604041271002139
8614260385344045
Items
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B6:B10065Cell ValueduplicatestextNO
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
i cant see any duplicates , using a countif()
which ones a double

Book18
BC
8168712759036033.001
8178712759036057.001
8188712759036040.001
8198712759036064.001
8208712759036071.001
8218712759076602.001
8228712759342004.001
8238712759341007.001
8248712759077890.001
8254041271002016.001
8264260385343680.001
8274041271002023.001
8284260385343703.001
8294041271002047.001
8304260385343727.001
8314041271002054.001
8324260385343741.001
8334041271040858.001
8344260385343765.001
8354041271040865.001
8364260385343789.001
8374041271002061.001
8384260385343802.001
8394041271002085.001
8404260385343826.001
8414041271002092.001
8424260385343840.001
8434041271044085.001
8444260385343864.001
8454041271044092.001
8464260385343888.001
8474041271044108.001
8484260385343901.001
8494041271044115.001
8504260385343925.001
8514041271044122.001
8524260385343949.001
8534041271044139.001
8544041271002108.001
8554260385343987.001
8564041271002115.001
8574260385344007.001
8584041271002122.001
8594260385344021.001
8604041271002139.001
8614260385344045.001
Sheet3
Cell Formulas
RangeFormula
C816:C861C816=COUNTIF($B$816:$B$861,B816)
 
Upvote 0
i cant see any duplicates ,
It appears the OP's data is much bigger than shown:
1684748538528.png


I would like to count the double values in this column
Can a number occur more than twice?
If so, what would be the count for this sample data?

23 05 22.xlsm
E
8035
8046
8053
8065
8075
8083
8094
Sheet2 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E803:E809Cell ValueduplicatestextNO


In any case, even if a number only occurs twice, how do you want the count to be? For example, is the count for this sample data 1 or 2?

23 05 22.xlsm
G
8035
8046
8055
8063
Sheet2 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G803:G806Cell ValueduplicatestextNO
 
Upvote 0
It appears the OP's data is much bigger than shown:
View attachment 92032


Can a number occur more than twice?
If so, what would be the count for this sample data?

23 05 22.xlsm
E
8035
8046
8053
8065
8075
8083
8094
Sheet2 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E803:E809Cell ValueduplicatestextNO


In any case, even if a number only occurs twice, how do you want the count to be? For example, is the count for this sample data 1 or 2?

23 05 22.xlsm
G
8035
8046
8055
8063
Sheet2 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G803:G806Cell ValueduplicatestextNO
If would have 1 1 1 and 2 2 I would like to have the number 5 times. Is that possible?
 
Upvote 0
If would have 1 1 1 and 2 2 I would like to have the number 5 times.
You would have to adapt to your range, but would this suffice?

23 05 22.xlsm
EF
80355
8046
8053
8065
8075
8083
8094
Count Dupes
Cell Formulas
RangeFormula
F803F803=SUM(--(COUNTIFS(E803:E809,E803:E809)>1))
 
Upvote 0
You would have to adapt to your range, but would this suffice?

23 05 22.xlsm
EF
80355
8046
8053
8065
8075
8083
8094
Count Dupes
Cell Formulas
RangeFormula
F803F803=SUM(--(COUNTIFS(E803:E809,E803:E809)>1))
I tried it but the result is 0 which is should not be. Also and that I did not mention, its in a table.
 
Upvote 0
I tried it but the result is 0 which is should not be. Also and that I did not mention, its in a table.
Table should not be the problem. This is a table & the formula has counted the blue & green cells.
Test the concept by making up a small dummy table like this and try the formula on that table.

Romano_odK.xlsm
BCD
801
802Number
80387127590360335
8048712759036057
8058712759036040
8069999759036057
8078712759036040
8088712759036040
8098712759036057
8106598985454872
811
Count Dupes
Cell Formulas
RangeFormula
D803D803=SUM(--(COUNTIFS(Table1[Number],Table1[Number])>1))
 
Upvote 0
Solution
Table should not be the problem. This is a table & the formula has counted the blue & green cells.
Test the concept by making up a small dummy table like this and try the formula on that table.

Romano_odK.xlsm
BCD
801
802Number
80387127590360335
8048712759036057
8058712759036040
8069999759036057
8078712759036040
8088712759036040
8098712759036057
8106598985454872
811
Count Dupes
Cell Formulas
RangeFormula
D803D803=SUM(--(COUNTIFS(Table1[Number],Table1[Number])>1))
I figured it out. Thank you.
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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