Count, without repeating...

evilacha

New Member
Joined
Jul 11, 2006
Messages
25
HI guys, I'm getting addicted to this board, its very usefull. What i have its a sheet that has a column with clients and other column thats like a conditional, i want to count all the clients that have that conditional without counting a client twice... because the client list have clients that apper more than once...

Thanks for all your help guys.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
what about this
=IF(COUNTIF($A$1:A1,A1)=1,1,0)

where column A has the client. So wherever the answer shows 1 is a unique count of that client.
 
Upvote 0
I tried that, but aint working... let me show you a small example:

[ B ][ L ]
[Client ][ Aladi ]
[ IND ] [ ]
[ACME ] [ Aladi ]
[ACME ] [ Aladi ]
[LASYS] [ Aladi ]
[ IND ] [ ]

So what i want to do its to count how many clients, meet the "Aladi" Requirement... in this example it would be 2: Acme and LASYS, because IND doesnt meet the requirement and it must count each client just once.
 
Upvote 0
tHX man i made a way through your formula, I starded with a filter, to show the Aladi clients, after that I applied your formula and made a sum of all the " 1 " and it worked.
 
Upvote 0
I tried that, but aint working... let me show you a small example:

[ B ][ L ]
[Client ][ Aladi ]
[ IND ] [ ]
[ACME ] [ Aladi ]
[ACME ] [ Aladi ]
[LASYS] [ Aladi ]
[ IND ] [ ]

So what i want to do its to count how many clients, meet the "Aladi" Requirement... in this example it would be 2: Acme and LASYS, because IND doesnt meet the requirement and it must count each client just once.
Book4
BCDEFGHIJKL
2
3ClientAladi
4IND
5ACMEAladi
6ACMEAladi
7LASYSAladi
8IND
9
10
11
12
13
14
152
162
17
Sheet1


B15:

=SUM(IF(FREQUENCY(IF($B$4:$B$8<>"",IF($L$4:$L$8="Aladi",MATCH($B$4:$B$8,$B$4:$B$8,0))),ROW(B4:B8)-ROW($B$4)+1),1))

which needs to be confirmed with control+shift+enter, not just with enter.

Or, alternatively, if you have installed the morefunc.xll add-in:

B16:

=COUNTDIFF(IF($L$4:$L$8="Aladi",IF($B$4:$B$8<>"",$B$4:$B$8)),FALSE,FALSE)

which also needs to be confirmed with control+shift+enter, not just with enter.
 
Upvote 0

Forum statistics

Threads
1,222,046
Messages
6,163,588
Members
451,846
Latest member
ajk99

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