Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to determine the frequency?

[Re-word my post]
Does anyone have any suggestions on how to determine the frequency?
There is a list of date under column A, and a given number 3 in cell B1
I would like to determine the frequency with +/- 3 days acceptable range

04-Jan-09, 09-Jan-09, 11-Jan-09, 18-Jan-09, 20-Jan-09, 22-Jan-09,
23-Jan-09, 24-Jan-09, 24-Jan-09, 24-Jan-09, 24-Jan-09, 26-Jan-09,
27-Jan-09, 05-Feb-09, 06-Feb-09, 12-Feb-09, 17-Feb-09 ...

On 4-Jan-08, it should return 1 in cell C1 for range between 1-Jan-09 and
7-Jan-09, which include 04-Jan-09 only.

On 09-Jan-08, it should return 2 in cell C3 for range between 5-Jan-09 and
12-Jan-09, which include 09-Jan-09 and 11-Jan-09.

On 11-Jan-08, it should return 2 in cell C3 for range between 8-Jan-09 and
14-Jan-09, which include 09-Jan-09 and 11-Jan-09.

....

On 24-Jan-08, it should return 8 in cell C8 for range between 21-Jan-09 and
27-Jan-09, which include 22-Jan-09, 23-Jan-09, 24-Jan-09, 24-Jan-09,
24-Jan-09, 24-Jan-09, 26-Jan-09, 27-Jan-09

Does anyone have any suggestions on how to determine the occurrence?
Thanks in advance for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default How to determine the frequency?

On Sun, 23 Nov 2008 05:12:05 -0800, Eric
wrote:

[Re-word my post]
Does anyone have any suggestions on how to determine the frequency?
There is a list of date under column A, and a given number 3 in cell B1
I would like to determine the frequency with +/- 3 days acceptable range

04-Jan-09, 09-Jan-09, 11-Jan-09, 18-Jan-09, 20-Jan-09, 22-Jan-09,
23-Jan-09, 24-Jan-09, 24-Jan-09, 24-Jan-09, 24-Jan-09, 26-Jan-09,
27-Jan-09, 05-Feb-09, 06-Feb-09, 12-Feb-09, 17-Feb-09 ...

On 4-Jan-08, it should return 1 in cell C1 for range between 1-Jan-09 and
7-Jan-09, which include 04-Jan-09 only.

On 09-Jan-08, it should return 2 in cell C3 for range between 5-Jan-09 and
12-Jan-09, which include 09-Jan-09 and 11-Jan-09.

On 11-Jan-08, it should return 2 in cell C3 for range between 8-Jan-09 and
14-Jan-09, which include 09-Jan-09 and 11-Jan-09.

...

On 24-Jan-08, it should return 8 in cell C8 for range between 21-Jan-09 and
27-Jan-09, which include 22-Jan-09, 23-Jan-09, 24-Jan-09, 24-Jan-09,
24-Jan-09, 24-Jan-09, 26-Jan-09, 27-Jan-09

Does anyone have any suggestions on how to determine the occurrence?
Thanks in advance for any suggestions
Eric


In your second example i think that C3 should be C2 and that 5-Jan
should be 6-Jan.

Try the following formula in cell C1:

=SUMPRODUCT((A$1:A$100=A1-B$1)*(A$1:A$100<=A1+B$1))

Change the 100 to be at least the number of dates that you have in
column A.
Copy the formula down as many rows as you need.

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How to determine the frequency?

Re-tweaked my response involving sumproduct in your earlier posting
(I read liberally between-the-lines in venturing my response)

Try in C1:
=SUMPRODUCT(($A$1:$A$17=A1-$B$1)*($A$1:$A$17<=A1+$B$1))
Copy down

P/s: From your posting profile, you have put in close to 1,100 posts
to-date. That's quite a lot of posts. And you must have received many, many
responses since which helped you resolve your issues and build up your
knowledge along the way. But amazingly, you have yet to help out any other
poster to-date?
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
"Eric" wrote:
[Re-word my post]
Does anyone have any suggestions on how to determine the frequency?
There is a list of date under column A, and a given number 3 in cell B1
I would like to determine the frequency with +/- 3 days acceptable range

04-Jan-09, 09-Jan-09, 11-Jan-09, 18-Jan-09, 20-Jan-09, 22-Jan-09,
23-Jan-09, 24-Jan-09, 24-Jan-09, 24-Jan-09, 24-Jan-09, 26-Jan-09,
27-Jan-09, 05-Feb-09, 06-Feb-09, 12-Feb-09, 17-Feb-09 ...

On 4-Jan-08, it should return 1 in cell C1 for range between 1-Jan-09 and
7-Jan-09, which include 04-Jan-09 only.

On 09-Jan-08, it should return 2 in cell C3 for range between 5-Jan-09 and
12-Jan-09, which include 09-Jan-09 and 11-Jan-09.

On 11-Jan-08, it should return 2 in cell C3 for range between 8-Jan-09 and
14-Jan-09, which include 09-Jan-09 and 11-Jan-09.

...

On 24-Jan-08, it should return 8 in cell C8 for range between 21-Jan-09 and
27-Jan-09, which include 22-Jan-09, 23-Jan-09, 24-Jan-09, 24-Jan-09,
24-Jan-09, 24-Jan-09, 26-Jan-09, 27-Jan-09


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default How to determine the frequency?

And a lot of Eric's posts are repeats, and I've yet to see him thank anyone.
While all his posts require some creativity to solve, it's hard to believe
they are related. It's easier to believe he's playing games.

Regards,
Fred.

"Max" wrote in message
...
Re-tweaked my response involving sumproduct in your earlier posting
(I read liberally between-the-lines in venturing my response)

Try in C1:
=SUMPRODUCT(($A$1:$A$17=A1-$B$1)*($A$1:$A$17<=A1+$B$1))
Copy down

P/s: From your posting profile, you have put in close to 1,100 posts
to-date. That's quite a lot of posts. And you must have received many,
many
responses since which helped you resolve your issues and build up your
knowledge along the way. But amazingly, you have yet to help out any other
poster to-date?
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
"Eric" wrote:
[Re-word my post]
Does anyone have any suggestions on how to determine the frequency?
There is a list of date under column A, and a given number 3 in cell B1
I would like to determine the frequency with +/- 3 days acceptable range

04-Jan-09, 09-Jan-09, 11-Jan-09, 18-Jan-09, 20-Jan-09, 22-Jan-09,
23-Jan-09, 24-Jan-09, 24-Jan-09, 24-Jan-09, 24-Jan-09, 26-Jan-09,
27-Jan-09, 05-Feb-09, 06-Feb-09, 12-Feb-09, 17-Feb-09 ...

On 4-Jan-08, it should return 1 in cell C1 for range between 1-Jan-09 and
7-Jan-09, which include 04-Jan-09 only.

On 09-Jan-08, it should return 2 in cell C3 for range between 5-Jan-09
and
12-Jan-09, which include 09-Jan-09 and 11-Jan-09.

On 11-Jan-08, it should return 2 in cell C3 for range between 8-Jan-09
and
14-Jan-09, which include 09-Jan-09 and 11-Jan-09.

...

On 24-Jan-08, it should return 8 in cell C8 for range between 21-Jan-09
and
27-Jan-09, which include 22-Jan-09, 23-Jan-09, 24-Jan-09, 24-Jan-09,
24-Jan-09, 24-Jan-09, 26-Jan-09, 27-Jan-09



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 to I determine frequency Sandi Excel Worksheet Functions 5 January 14th 08 03:27 PM
Frequency.... I think DP7 Excel Worksheet Functions 1 July 10th 07 08:24 PM
How to determine the frequency of a list of numbers? Eric Excel Discussion (Misc queries) 3 June 15th 07 08:58 AM
histograms - frequency and relative frequency? confusedstudent Excel Discussion (Misc queries) 2 February 8th 06 08:20 AM
Determine Frequency in Filtered List Michael Excel Worksheet Functions 3 February 10th 05 07:57 PM


All times are GMT +1. The time now is 02:41 PM.

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"