Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Help with SUMIF using a range of dates as criteria

I'm using Excel 2000. Column A has four dates, Column B has the
person's name. I want to count how many dates in column A fall
between a date range. My data is below

A2 = 1-Apr-99
A3 = 1-Dec-99
A4 = 1-2Dec-99
A5 = 2-Jan-00

B2 = Mary
B3 = Peter
B4 = Paul
B5 = Susan

I want to know how many entries in column A fell between the dates of
April 1, 1999 and March 31, 2000, the count should be four. What
would be the appropriate COUNTIF formula? Pardon the pun but I've
lost count of how many variations I've tried to get my result. greatly
appreciated?

Any help would be Also, if some entries in column A were blank, would
that affect the formula?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Help with SUMIF using a range of dates as criteria

You can't use COUNTIF with multiple conditions. Assuming your column A data
is formatted as Dates (not text), this SUMPRODUCT formula should work:

=SUMPRODUCT(--(A2:A5=DATEVALUE("4/1/1999")),--(A2:A5<=DATEVALUE("3/31/2000")))

Hope this helps,

Hutch

" wrote:

I'm using Excel 2000. Column A has four dates, Column B has the
person's name. I want to count how many dates in column A fall
between a date range. My data is below

A2 = 1-Apr-99
A3 = 1-Dec-99
A4 = 1-2Dec-99
A5 = 2-Jan-00

B2 = Mary
B3 = Peter
B4 = Paul
B5 = Susan

I want to know how many entries in column A fell between the dates of
April 1, 1999 and March 31, 2000, the count should be four. What
would be the appropriate COUNTIF formula? Pardon the pun but I've
lost count of how many variations I've tried to get my result. greatly
appreciated?

Any help would be Also, if some entries in column A were blank, would
that affect the formula?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Help with SUMIF using a range of dates as criteria

=COUNTIF(A2:A5,"="&DATE(1999,4,1))-COUNTIF(A2:A5,""&DATE(2000,3,31))

or


=SUMPRODUCT(--(A2:A5=DATE(1999,4,1)),--(A2:A5<=DATE(2000,3,31)))

If you get a date using the former, just format the result as general

--
Regards,

Peo Sjoblom


wrote in message
ups.com...
I'm using Excel 2000. Column A has four dates, Column B has the
person's name. I want to count how many dates in column A fall
between a date range. My data is below

A2 = 1-Apr-99
A3 = 1-Dec-99
A4 = 1-2Dec-99
A5 = 2-Jan-00

B2 = Mary
B3 = Peter
B4 = Paul
B5 = Susan

I want to know how many entries in column A fell between the dates of
April 1, 1999 and March 31, 2000, the count should be four. What
would be the appropriate COUNTIF formula? Pardon the pun but I've
lost count of how many variations I've tried to get my result. greatly
appreciated?

Any help would be Also, if some entries in column A were blank, would
that affect the formula?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Help with SUMIF using a range of dates as criteria

Thanks for the suggestions. The first one worked and I'm going to try
the second suggested solution as well.

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
Sumif between 2 dates and specify criteria [email protected] Excel Discussion (Misc queries) 2 September 6th 06 05:18 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 04:41 PM
SUMIF with AND for range and criteria davidm_ba Excel Worksheet Functions 3 August 2nd 05 02:31 PM
SUMIF function - criteria of between two dates. How? Frannie21 Excel Worksheet Functions 4 January 27th 05 04:28 PM
can I use a range of dates as a criteria when using sumif? D@annyBoy Excel Worksheet Functions 5 December 2nd 04 02:37 PM


All times are GMT +1. The time now is 05:17 AM.

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"