![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 2
|
I don't know if its possible to do this in Excel. My worksheets has clients with duplicate rows. I'm attempting to tally the number of clients without counting them more than once.
i.e.: client a client a client a client b client b client c total client: 3 instead of 6 Thanks in advance for your help. Rob |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=SUM(IF(FREQUENCY(MATCH(A2:A100,A2:A100,0),MATCH(A2:A100,A2:A100,0)),1)) or, array-enter, =SUM(IF(LEN(A2:A100),1/COUNTIF(A2:A100,A2:A100))) Note. To array-enter a formula hit control+shift+enter at the same time, not just enter. [ This Message was edited by: Aladin Akyurek on 2002-04-23 12:52 ] |
|
|
|
|
|
|
#3 | |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
Quote:
[ This Message was edited by: John McGraw on 2002-04-23 12:57 ] |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Thank you very, very much, Aladin. The first formula worked. I will never doubt Excel ever again, John.
I'm a true believer, now. |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Posts: 162
|
Otherwise try the advanced data filter-> unique record only. Then marking duplcate rows and couting them.
Even better: use SAS to tacle these kind of things.
__________________
NOx installed |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|