Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUM(COUNTIF(A2:A7,{"Buchanan","Dodsworth"}))
or =SUMPRODUCT(--(A2:A7={"Buchanan","Dodsworth"})) "Leoski" wrote: Microsoft has an example of how to count how often multiple text values occur by using the SUM and IF fuctions. The example formula is: {=SUM(IF((A2:A7="Buchanan")+(A2:A7="Dodsworth"),1, 0))} Copying and pasting the sample table and formulas work fine - since array formulas I pressed F2 then Shift+Ctrl+Enter. Formula works. But if I type in the exact formula (not copy & paste), it won't work. The F2 key does not highlight it. The Evaluate Formula tool says my formula contains a constant - but it is identical to the copied one that works. What am I doing wrong? Thank you |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Nested array functions? | Excel Worksheet Functions | |||
IF statement in Array Formula's | Excel Discussion (Misc queries) | |||
Nested if in Array | Excel Worksheet Functions | |||
How do I use wild cards in nested array formulas? | Excel Worksheet Functions |