Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm trying to use a function (WEEKNUM) as the criteria for a range in
COUNTIF. Is this possible? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
No you can't, and you cannot even use it in SUMPRODUCT because WEEKNUM will
not handle an array of dates. So you have to craft your own =SUMPRODUCT(--(1+INT(($A$2:$A$20-(DATE(YEAR($A$2:$A$20),1,2)-WEEKDAY(DATE(YEAR($A$2:$A$20),1,1))))/7)=1)) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ... I'm trying to use a function (WEEKNUM) as the criteria for a range in COUNTIF. Is this possible? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try with SUMPRODUCT.
Pete On May 22, 6:52*am, wrote: I'm trying to use a function (WEEKNUM) as the criteria for a range in COUNTIF. *Is this possible? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
See my comment on SP.
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Pete_UK" wrote in message ... Try with SUMPRODUCT. Pete On May 22, 6:52 am, wrote: I'm trying to use a function (WEEKNUM) as the criteria for a range in COUNTIF. Is this possible? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to count a range of number to a given parameter or criteria. | Excel Worksheet Functions | |||
How do you create COUNTIF functions based on multiple criteria? | Excel Worksheet Functions | |||
Parameter/Criteria option not available for External Data Query | Excel Discussion (Misc queries) | |||
Countif using format criteria not number criteria? | Excel Worksheet Functions | |||
Countif using format criteria....not number criteria? | Excel Worksheet Functions |