![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: Surfers Paradise
Posts: 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 |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
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.
__________________
Kind regards, Al Chara |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
where A2:a7 houses the sample you provided. |
|
|
|
|
|
|
#4 | ||
|
New Member
Join Date: Mar 2002
Location: Surfers Paradise
Posts: 19
|
Quote:
Regards Lewy |
||
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
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.
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
> I cant Get either of the relies to work Lewy, What happens when you apply the FREQUENCY formula? Aladin |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|