LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default How to determine the occurrence between periods?

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

 
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 to determine the number of months between 2 periods? Eric Excel Discussion (Misc queries) 0 August 17th 07 02:23 AM
How to determine the number of months between 2 periods? Mike H Excel Discussion (Misc queries) 0 August 17th 07 01:56 AM
How to determine the number of months between 2 periods? Farhad Excel Discussion (Misc queries) 0 August 17th 07 01:48 AM
How to determine the number of months between 2 periods? Eric Excel Discussion (Misc queries) 2 July 14th 07 04:46 PM
How to determine the number of workday between two periods? Eric Excel Discussion (Misc queries) 1 February 12th 07 07:12 AM


All times are GMT +1. The time now is 03:49 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"