Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have a worksheet that categorize people into category n country. i need to
do a sum of all these ppl. is there a way to code a program to count the number of name and insert it in certain cells. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Violet
Two options. Easiest option create a pivot table of your data, (use the wizard if you are not familiar with pivot tables). The other option is to use the sumif function, you will need to type each country into a cell for this. -- Tony Green "violet" wrote: i have a worksheet that categorize people into category n country. i need to do a sum of all these ppl. is there a way to code a program to count the number of name and insert it in certain cells. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could also write a little table of the categories, and then create a
countif function for these. so, assuming the table is in A1:A10 on sheet2 and the data is on sheet 1, something like Worksheets("Sheet2").Range("A1:A10").Formula = "=COUNTIF(Sheet1!A:A,A1)" -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "violet" wrote in message ... i have a worksheet that categorize people into category n country. i need to do a sum of all these ppl. is there a way to code a program to count the number of name and insert it in certain cells. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count Employee Work Time - Don't Double-count Overlapping Apts. | Excel Worksheet Functions | |||
Excel 2000, count, sort a list & count totals? | Excel Worksheet Functions | |||
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row | Excel Worksheet Functions | |||
Count Intervals of 1 Numeric value in a Row and Return Count down Column | Excel Worksheet Functions | |||
Count Intervals of Filtered TEXT values in Column and Return Count across a Row | Excel Worksheet Functions |