Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Count within a date range

I have dates in column A and a calculated # in column B. What I need to
determine is for a specified date range from col A, how many in col b are
less than or equal to 1. For example:

Date range = 02/01/2008 to 02/10/2008 should return a value of 2. I can't
figure out the formula to use. I've tried sumif and sumproduct with a count
and countif addition (for the <=1), but I can't get the right result. Any
one have ideas?


Col A Col B
01/30/2008 0
01/31/2008 0
02/01/2008 0
02/05/2008 1
02/11/2008 0
01/24/2008 1
02/06/2008 2
02/15/2008 1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Count within a date range

Put the start date in C1, and the end date in C2, and try this:

=SUMPRODUCT((A1:A8=C1)*(A1:A8<=C2)*(B1:B8<=1))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Chad" wrote in message
...
I have dates in column A and a calculated # in column B. What I need to
determine is for a specified date range from col A, how many in col b are
less than or equal to 1. For example:

Date range = 02/01/2008 to 02/10/2008 should return a value of 2. I can't
figure out the formula to use. I've tried sumif and sumproduct with a count
and countif addition (for the <=1), but I can't get the right result. Any
one have ideas?


Col A Col B
01/30/2008 0
01/31/2008 0
02/01/2008 0
02/05/2008 1
02/11/2008 0
01/24/2008 1
02/06/2008 2
02/15/2008 1


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Count within a date range

Worked perfectly. Sorry for the long delay in replying.

"RagDyeR" wrote:

Put the start date in C1, and the end date in C2, and try this:

=SUMPRODUCT((A1:A8=C1)*(A1:A8<=C2)*(B1:B8<=1))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Chad" wrote in message
...
I have dates in column A and a calculated # in column B. What I need to
determine is for a specified date range from col A, how many in col b are
less than or equal to 1. For example:

Date range = 02/01/2008 to 02/10/2008 should return a value of 2. I can't
figure out the formula to use. I've tried sumif and sumproduct with a count
and countif addition (for the <=1), but I can't get the right result. Any
one have ideas?


Col A Col B
01/30/2008 0
01/31/2008 0
02/01/2008 0
02/05/2008 1
02/11/2008 0
01/24/2008 1
02/06/2008 2
02/15/2008 1



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Count within a date range

Appreciate the feed-back, no matter how belated it might be!<g
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Chad" wrote in message
...
Worked perfectly. Sorry for the long delay in replying.

"RagDyeR" wrote:

Put the start date in C1, and the end date in C2, and try this:

=SUMPRODUCT((A1:A8=C1)*(A1:A8<=C2)*(B1:B8<=1))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Chad" wrote in message
...
I have dates in column A and a calculated # in column B. What I need to
determine is for a specified date range from col A, how many in col b are
less than or equal to 1. For example:

Date range = 02/01/2008 to 02/10/2008 should return a value of 2. I
can't
figure out the formula to use. I've tried sumif and sumproduct with a
count
and countif addition (for the <=1), but I can't get the right result.
Any
one have ideas?


Col A Col B
01/30/2008 0
01/31/2008 0
02/01/2008 0
02/05/2008 1
02/11/2008 0
01/24/2008 1
02/06/2008 2
02/15/2008 1





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
How can I count a record if it contains a date within a date range hile trotman Excel Worksheet Functions 0 September 20th 06 08:58 PM
Count cells within a date range Dewayne Excel Discussion (Misc queries) 7 August 20th 06 04:40 AM
count records in a date range jiml Excel Discussion (Misc queries) 3 January 10th 06 08:28 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
count weekdays in a date range benb Excel Worksheet Functions 1 January 13th 05 02:49 PM


All times are GMT +1. The time now is 10:33 AM.

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

About Us

"It's about Microsoft Excel"