Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have 2 worksheets. The first worksheet contains data queried from an
Access 2000 database. Fields as follows: (Column A) Date/time: eg '05/04/2007 00:00' (Column C) Category: eg 'A1' or 'A2' or 'A3' etc (Column D) Lost time: eg 'Yes' or 'No' A cell in the second worksheet needs to count how many instances match all the following criteria: Category = A1 Date = 01/04/2007 to 30/04/2007 Lost time = Yes Many thanks in advance for any help with this. -- Richard |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
one way:
=SUMPRODUCT(--(A1:A1000=DATE(2007,4,1)), --(A1:A1000<=DATE(2007,4,30)), --(C1:C1000="A1"), --(D1:D1000="Yes"))) You might also look at DSUM() and if you want all the combinations (and you want to group dates by, say, months or quarters), a Pivot Table is the way to go. In article , Richard wrote: I have 2 worksheets. The first worksheet contains data queried from an Access 2000 database. Fields as follows: (Column A) Date/time: eg '05/04/2007 00:00' (Column C) Category: eg 'A1' or 'A2' or 'A3' etc (Column D) Lost time: eg 'Yes' or 'No' A cell in the second worksheet needs to count how many instances match all the following criteria: Category = A1 Date = 01/04/2007 to 30/04/2007 Lost time = Yes Many thanks in advance for any help with this. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
JE McGimpsey
Thank you so much. It works beautifully. Have a great day...! -- Richard "JE McGimpsey" wrote: one way: =SUMPRODUCT(--(A1:A1000=DATE(2007,4,1)), --(A1:A1000<=DATE(2007,4,30)), --(C1:C1000="A1"), --(D1:D1000="Yes"))) You might also look at DSUM() and if you want all the combinations (and you want to group dates by, say, months or quarters), a Pivot Table is the way to go. In article , Richard wrote: I have 2 worksheets. The first worksheet contains data queried from an Access 2000 database. Fields as follows: (Column A) Date/time: eg '05/04/2007 00:00' (Column C) Category: eg 'A1' or 'A2' or 'A3' etc (Column D) Lost time: eg 'Yes' or 'No' A cell in the second worksheet needs to count how many instances match all the following criteria: Category = A1 Date = 01/04/2007 to 30/04/2007 Lost time = Yes Many thanks in advance for any help with this. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula in Excel 2000 to work %'s | Excel Worksheet Functions | |||
What's wrong with my formula? Excel 2000. | Excel Worksheet Functions | |||
Excel 2000 Formula | Excel Discussion (Misc queries) | |||
Microsoft EXCEL 2000 Formula | Excel Worksheet Functions | |||
=%A%1, is this a good formula in Excel 2000? | Excel Discussion (Misc queries) |