Counting

Lewy2

New Member
Joined
Mar 16, 2002
Messages
19
I have a column that has text entered into it
like the following.
1-1
1-1
1-2
1-3
1-4
1-4
I want to be able to count the number of sets that occur more than once.
ie the above would have aresult of 2 being 1-1 & 1-4
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try using the countif function:

=IF(COUNTIF($A$1:$A$6,A1)>1,COUNTIF($A$1:$A$6,A1),"")

Where $A$1:$A$6 is your data range and A1 is the value you are searching for. The function will only display values that occur more than once.
 
Upvote 0
On 2002-03-18 13:41, Lewy2 wrote:
I have a column that has text entered into it
like the following.
1-1
1-1
1-2
1-3
1-4
1-4
I want to be able to count the number of sets that occur more than once.
ie the above would have aresult of 2 being 1-1 & 1-4

=SUM(IF(FREQUENCY(MATCH(A2:A7,A2:A7,0),MATCH(A2:A7,A2:A7,0))>1,1))

where A2:a7 houses the sample you provided.
 
Upvote 0
On 2002-03-18 14:03, Aladin Akyurek wrote:
On 2002-03-18 13:41, Lewy2 wrote:
I have a column that has text entered into it
like the following.
1-1
1-1
1-2
1-3
1-4
1-4
I want to be able to count the number of sets that occur more than once.
ie the above would have aresult of 2 being 1-1 & 1-4

=SUM(IF(FREQUENCY(MATCH(A2:A7,A2:A7,0),MATCH(A2:A7,A2:A7,0))>1,1))

where A2:a7 houses the sample you provided.
I cant Get either of the relies to work thanks for the effort
Regards
Lewy
 
Upvote 0
They need to be entered by pressing Control-Save-Enter at the same time instead of just enter since they are array, oops I mean CSE, formulas.
 
Upvote 0

Forum statistics

Threads
1,213,533
Messages
6,114,179
Members
448,554
Latest member
Gleisner2

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