Countifproblem

JDW93

New Member
Joined
Mar 14, 2014
Messages
17
I have a column of data which includes numbers, some of these numbers may be repeated.
I need to count how many times a number appears twice for all numbers.

EG

1
1
1
2
3
2
4

The answer would be 2 AS the number 1 appears more than once and the number 2 appears more than once.
Therefor the answer will be 2.

Could anyone help me with a formula please?
 

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.
Hi,

"I need to count how many times a number appears twice for all numbers"

Did you mean perhaps "twice or more"?

Regards
 
Upvote 0
Use:

=SUMPRODUCT(0+(FREQUENCY(A1:A7,A1:A7)>1))


assuming of course that your values are numerical, not text.

Regards
 
Upvote 0
Although I need to do the sum product for this column.
I first need the numbers to match criteria in other columns such as =if(DataSheet!$F:$F,4,DataSheet!$K:$K,"COMP") and then to do the sum product

Thankyou
 
Upvote 0
Sorry - not sure what you mean. Could you post a table of perhaps 8 or 10 lines and indicate your desired results?

Regards
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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