Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Why can't I use nonadjacent selections as a range in the =COUNTIF formula?
For example: =COUNTIF(FirstGroup,E53) where FirstGroup is a nonadjacent selection of cells A10:A20 G10:G20 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here's one way...
=SUMPRODUCT(--(CHOOSE({1,2},A10:A20,G10:G20)=E53)) Hope this helps! In article , schillm228 wrote: Why can't I use nonadjacent selections as a range in the =COUNTIF formula? For example: =COUNTIF(FirstGroup,E53) where FirstGroup is a nonadjacent selection of cells A10:A20 G10:G20 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Domenic wrote...
Here's one way... =SUMPRODUCT(--(CHOOSE({1,2},A10:A20,G10:G20)=E53)) I'd figure the OP wants to use the defined name FirstGroup. Your formula could be rewritten as =SUMPRODUCT(--(CHOOSE({1,2},INDEX(FirstGroup,0,0,1), INDEX(FirstGroup,0,0,2))=E53)) However, for counting, there's a more compact solution: FREQUENCY. =INDEX(FREQUENCY(FirstGroup,E53*{0.99999999999999; 1}),2) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'd figure the OP wants to use the defined name FirstGroup.
Very true... However, for counting, there's a more compact solution: FREQUENCY. =INDEX(FREQUENCY(FirstGroup,E53*{0.99999999999999; 1}),2) Nice one Harlan! |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try this idea
=SUMPRODUCT(COUNTIF(INDIRECT({"a2:a22","c2:c22"}), "=ff")) =SUMPRODUCT(COUNTIF(INDIRECT({"a2:a22","c2:c22"}), E7)) -- Don Guillett SalesAid Software "schillm228" wrote in message ... Why can't I use nonadjacent selections as a range in the =COUNTIF formula? For example: =COUNTIF(FirstGroup,E53) where FirstGroup is a nonadjacent selection of cells A10:A20 G10:G20 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
keyboard command used to select a range of nonadjacent cells? | Excel Discussion (Misc queries) | |||
keyboard command used to select a range of nonadjacent cells? | Excel Discussion (Misc queries) | |||
functions with nonadjacent cells | Excel Worksheet Functions | |||
Use TREND function with nonadjacent cells | Excel Worksheet Functions | |||
I cannot select nonadjacent cells in Excell Office XP SP2 | Excel Discussion (Misc queries) |