PC Review


Reply
Thread Tools Rate Thread

How to determine the occurrence between periods?

 
 
=?Utf-8?B?RXJpYw==?=
Guest
Posts: n/a
 
      14th Sep 2007
Does anyone have any suggestions on how to determine the value?

Under column A, there is a list of date sorted by descending order.
Under column B, there is a list of numbers
In cell C1, there is a starting date, and in cell D1, there is a ending
date, and
in cell E1, there is a number.
I would like to determine the number of occurrence based on the value in
cell E1 matching any value under column B between starting date [C1] and
ending date [D1]. For example

There are some data for column A & B

30-Aug-2007 8
29-Aug-2007 7
28-Aug-2007 6
27-Aug-2007 3
26-Aug-2007 5
25-Aug-2007 8
24-Aug-2007 1
23-Aug-2007 9
22-Aug-2007 8
21-Aug-2007 6
20-Aug-2007 3
19-Aug-2007 7
18-Aug-2007 5
....

The value in cell E1 is 6
The number of occurrence for 6 between 21-Aug-2007 and 28-Aug-2007 is 2,
because there are 2 occurrence of number 6 between this period.
2 will return in cell F1.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      14th Sep 2007
Try sumproduct...
=SUMPRODUCT(--(A1:A13>=C1), --(A1:A13<=D1), --(B1:B13=E1))

here is a link for an explanation
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH...

Jim Thomlinson


"Eric" wrote:

> Does anyone have any suggestions on how to determine the value?
>
> Under column A, there is a list of date sorted by descending order.
> Under column B, there is a list of numbers
> In cell C1, there is a starting date, and in cell D1, there is a ending
> date, and
> in cell E1, there is a number.
> I would like to determine the number of occurrence based on the value in
> cell E1 matching any value under column B between starting date [C1] and
> ending date [D1]. For example
>
> There are some data for column A & B
>
> 30-Aug-2007 8
> 29-Aug-2007 7
> 28-Aug-2007 6
> 27-Aug-2007 3
> 26-Aug-2007 5
> 25-Aug-2007 8
> 24-Aug-2007 1
> 23-Aug-2007 9
> 22-Aug-2007 8
> 21-Aug-2007 6
> 20-Aug-2007 3
> 19-Aug-2007 7
> 18-Aug-2007 5
> ...
>
> The value in cell E1 is 6
> The number of occurrence for 6 between 21-Aug-2007 and 28-Aug-2007 is 2,
> because there are 2 occurrence of number 6 between this period.
> 2 will return in cell F1.
> Does anyone have any suggestions?
> Thanks in advance for any suggestions
> Eric
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine the occurrence? Eric Microsoft Excel Misc 9 7th Sep 2009 08:15 PM
How to determine the highest occurrence? Eric Microsoft Excel Misc 4 23rd Nov 2008 10:11 AM
How to determine the number of month between 2 periods? =?Utf-8?B?RXJpYw==?= Microsoft Excel Worksheet Functions 1 7th Mar 2007 04:00 PM
How to determine the number of workday between two periods? =?Utf-8?B?RXJpYw==?= Microsoft Excel Worksheet Functions 1 12th Feb 2007 07:17 AM
How to determine the number of workday between two periods? =?Utf-8?B?RXJpYw==?= Microsoft Excel Misc 1 12th Feb 2007 07:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:55 PM.