This is what I have been trying to achieve but not sure how. Thanks a lot!
Hopefully, COUNTIF is not hard on the system as we have to do COUNTIF at least twice for each cell. The poster mentioned "a very large file."
E PIN N (odd and even)
HI
I had a header row at the top of my data.
Change the formula to
=IF(COUNTIF($G$2:G2,G2)<COUNTIF($G$2:$G$11,G2),"",COUNTIF($G$2:G2,G2))
and copy down
Then on column G header
Data>Filter>Autofilter>Custom> >=3
--
Regards
Roger Govier
Max,
I am glad you show up as I want to learn how to do this as well. I will
digest your formulas later. I see SMALL ( ) in your formula and I hope
I can figure it out this time.
Can I just share with everyone what I have done to achieve the results?
I am a beginner and the following is what I can manage without pulling
too many hairs. Please correct me if I am wrong or help me enhance my
method.
I put an *array formula* in column H.
=IF(COUNTIF(G:G,G1)>=3,1,0)
I can use dynamic range if I am more advanced.
Then I do AutoFilter to pick out the "1".
Then I do Data>Subtotal and sum up by name.
Then I "collapse" the data to just show the subtotals.
Some people cannot or don't like using AutoFilter or Data menu, and I am
sure your way is the way. I wonder if there is anything in between. I
am going to think some more as to how I can sum by name after
AutoFilter. I want to use a formula instead of Data>Subtotal.
Please feel free to comment.
Epinn
Max said:
In I1:
=IF(ROW(G1)>COUNT(H:H),"",INDEX(G:G,MATCH(SMALL(H:H,ROW(G1)),H:H,0)))
No problem with the above as-is, but it should have read as:
=IF(ROW(A1)>COUNT(H:H),"",INDEX(G:G,MATCH(SMALL(H:H,ROW(A1)),H:H,0)))
I'd normally use ROW(A1) out of convention <g>
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---