Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
can you tell me why this wont work? I am trying to find how many days in
column H2:H232 are less than 8 if in column D2:D232 the month is January. I used the formula below as an array formula but it is just counting all of the days and not the one's less than 8. {=COUNT(IF(D2:D232="January",H2:H232,"<8"))} |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe
=SUMPRODUCT((D2:D25="January")*(H2:H25<8)) Mike "drose" wrote: can you tell me why this wont work? I am trying to find how many days in column H2:H232 are less than 8 if in column D2:D232 the month is January. I used the formula below as an array formula but it is just counting all of the days and not the one's less than 8. {=COUNT(IF(D2:D232="January",H2:H232,"<8"))} |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This would likely cover it better he
=SUMPRODUCT((TEXT(D2:D25,"mmmm")="January")*(D2:D2 5<"")*(H2:H25<8)*(H2:H25<"")) Your data vis-a-viz count criteria issues could be: 1. You have real dates in col D, not text: January 2. There are blank cells in either/both cols D & H Any blank cells will be evaluated as a real date in "January" (affects col D's checks) or as a zero in calcs (affects col H's checks) -- Max Singapore http://savefile.com/projects/236895 Downloads:22,500 Files:370 Subscribers:66 xdemechanik --- "drose" wrote: can you tell me why this wont work? I am trying to find how many days in column H2:H232 are less than 8 if in column D2:D232 the month is January. I used the formula below as an array formula but it is just counting all of the days and not the one's less than 8. {=COUNT(IF(D2:D232="January",H2:H232,"<8"))} |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula to work in a 3-d reference with 2 work books | Excel Worksheet Functions | |||
Sorting the cells of a formula causes the formula to not work | Excel Worksheet Functions | |||
Why does this formula not work? | Excel Worksheet Functions | |||
A search for $ in a formula use to work now it does not work | Excel Discussion (Misc queries) | |||
extract a foldername with a formula-update formula does not work | Excel Programming |