![]() |
Counting the times a number appears
I have a dataset with individual and household numbers. Some of the
individuals live in the same household. I am trying to figure out how to count and display next to each individual how many people are in her/his household. I figure I need to count and display how many times his/her household number shows up, but I do not know how to do this for a general household number. (There are thousands so I don't want to have to search for each household number.) The household number is in column a. I figure it's something like "countif(a:a,?) but I don't know what to use for the criteria. Thanks. |
Counting the times a number appears
You're right! In B2 (or whichever column you want it in) just type:
=countif(A:A,A2) Then copy/paste it down! -- -SA "Jennifer B" wrote: I have a dataset with individual and household numbers. Some of the individuals live in the same household. I am trying to figure out how to count and display next to each individual how many people are in her/his household. I figure I need to count and display how many times his/her household number shows up, but I do not know how to do this for a general household number. (There are thousands so I don't want to have to search for each household number.) The household number is in column a. I figure it's something like "countif(a:a,?) but I don't know what to use for the criteria. Thanks. |
Counting the times a number appears
I don't understand your data layout. If you had a group of people
living at 20 High Street and another group at 20 Main Street, would you want to count all those 20's together? Pete On Jul 17, 11:01*pm, Jennifer B wrote: I have a dataset with individual and household numbers. *Some of the individuals live in the same household. I am trying to figure out how to count and display next to each individual how many people are in her/his household. *I figure I need to count and display how many times his/her household number shows up, but I do not know how to do this for a general household number. *(There are thousands so I don't want to have to search for each household number.) *The household number is in column a. *I figure it's something like "countif(a:a,?) but I don't know what to use for the criteria. *Thanks. |
All times are GMT +1. The time now is 05:23 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com