View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Farhad Farhad is offline
external usenet poster
 
Posts: 281
Default Counting strings in excel with Pivot

Hi,

In the other sheet right the name and put coutif beside of them like below:

A B
1 Mike =countif(sheet1!$A$1:$A$100,A1)
2 Navin
3

assume your data is in sheet1 in the range A1 to A100 and then you can copy
paste the formula to other names

Thanks,

Farhad
--
Farhad Hodjat


"navin" wrote:

Hi,

i have this sheet which contains user information. User name in the
sheets are repeated. I have used pivot tables to display this data.
However, I also want a column which shows the total number of users.
Currently, when I select "Count of user name" in the pivot, it counts
all the existing user names but i want it to display only distinct user

name (i.e), it should not count the repeated the username.

For Example:

Row: A
Mike
Mike
Mike
Mike
Mike
Mike
navin
navin
navin
navin
navin

For the above row i want Pivot to calculate and show total# of mike and
total# of navin

Please help.


Regards,
Navin