#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Excel 2000 formula

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Excel 2000 formula

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Excel 2000 formula

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula in Excel 2000 to work %'s Justina Excel Worksheet Functions 7 April 11th 07 04:05 AM
What's wrong with my formula? Excel 2000. HWhite Excel Worksheet Functions 2 February 9th 07 04:08 AM
Excel 2000 Formula Richard Excel Discussion (Misc queries) 2 November 20th 06 01:15 PM
Microsoft EXCEL 2000 Formula LOU Excel Worksheet Functions 7 September 17th 06 01:54 AM
=%A%1, is this a good formula in Excel 2000? Heidi123 Excel Discussion (Misc queries) 3 April 26th 06 03:00 PM


All times are GMT +1. The time now is 12:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"