count ?

  • Thread starter Thread starter pierre
  • Start date Start date
P

pierre

hello guys...please help

A
1 max
2 max
3 lyr
4 vop
5 vop
6 vop

i would like to make the following formula:
" if ANY item of column A is present more than 1 time , count it for me "

THANK YOU
 
In B1 enter 0
In B2 enter:

=IF(COUNTIF($A$1:A2,A2)=2,1,0)+B1 and copy down

the last cell in column B will give the number of duplicated items in column
A (in your case 2)
 
write following formula in cell B1 (in fronth of first max)
=countif($a$1:$a$6,$a1). Copy this formula till b6 and you will get desired
result. You can alter the countif range as per your actual data. If your
actual data is till 100 rows then formula should be
=countif($a$1:$a$100,$a1).
 
I assume that the result for your example should be 2. Try this formula

=SUM(IF(FREQUENCY(IF(A1:A100<>"",MATCH(A1:A100,A1:A100,0)),ROW(A1:A100)-ROW(A1)+1)>1,1))

confirmed with CTRL+SHIFT+ENTER

extend range if necessary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Numbering Sequence 3
sumproduct (month) 7
Count Formula 5
Excel Formula - Count Dates from another Sheet 8
Excel A CountIF question... I think 2
SUMPRODUCT QUESTION?, Ratios 3
Simple Excel Question 2
issue.... 2

Back
Top