PC Review


Reply
Thread Tools Rate Thread

How to determine the highest occurrence?

 
 
Eric
Guest
Posts: n/a
 
      23rd Nov 2008
Does anyone have any suggestions on how to determine the date?
There is a list of date under column A, and a given number 3 in cell B1
I would like to determine the highest occurrence +/- 3 days

If I select the date 11-Jan-08, the range will be between 8-Jan-08 and
14-Jan-08.
For the occurrence on 11--Jan-08, it should return 2 in cell C1.
Does anyone have any suggestions on how to determine the highest occurrence?
Thanks in advance for any suggestions
Eric

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
....

 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      23rd Nov 2008
Assuming real dates in A1:A17 as posted
In B1: 3
Then in C1:
=SUMPRODUCT((A1:A17>="11-Jan-09"-B1)*(A1:A17<="11-Jan-09"+B1))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
"Eric" wrote:
> Does anyone have any suggestions on how to determine the date?
> There is a list of date under column A, and a given number 3 in cell B1
> I would like to determine the highest occurrence +/- 3 days
>
> If I select the date 11-Jan-08, the range will be between 8-Jan-08 and
> 14-Jan-08.
> For the occurrence on 11--Jan-08, it should return 2 in cell C1.
> Does anyone have any suggestions on how to determine the highest occurrence?
> Thanks in advance for any suggestions
> Eric
>
> 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
> ...
>

 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      23rd Nov 2008
Hi,

This question is unclear, what do you mean by highest occurance? what do
2009 dates have to do with the 2008 dates?

Cheers,
Shane Devenshire

"Eric" wrote:

> Does anyone have any suggestions on how to determine the date?
> There is a list of date under column A, and a given number 3 in cell B1
> I would like to determine the highest occurrence +/- 3 days
>
> If I select the date 11-Jan-08, the range will be between 8-Jan-08 and
> 14-Jan-08.
> For the occurrence on 11--Jan-08, it should return 2 in cell C1.
> Does anyone have any suggestions on how to determine the highest occurrence?
> Thanks in advance for any suggestions
> Eric
>
> 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
> ...
>

 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      23rd Nov 2008
Hi,

To add to my previous questions, do you want Excel to calculate when you
select a cell? To get this to happen you will need to add code. If instead
you enter a date in a cell, in the following example, cell A1, I think the
following formula will work in most cases. It assumes the the date run from
A2:A18:

=LARGE(FREQUENCY(A2:A18,ROW(INDIRECT(A1-3&":"&A1+3))),2)

But I still don't know what 2008/2009 dates have to do with this.

Nevertheless, if this helps click the Yes button

Cheers,
Shane Devenshire

"Eric" wrote:

> Does anyone have any suggestions on how to determine the date?
> There is a list of date under column A, and a given number 3 in cell B1
> I would like to determine the highest occurrence +/- 3 days
>
> If I select the date 11-Jan-08, the range will be between 8-Jan-08 and
> 14-Jan-08.
> For the occurrence on 11--Jan-08, it should return 2 in cell C1.
> Does anyone have any suggestions on how to determine the highest occurrence?
> Thanks in advance for any suggestions
> Eric
>
> 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
> ...
>

 
Reply With Quote
 
Eric
Guest
Posts: n/a
 
      23rd Nov 2008
I need to reword my statement,

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


"Shane Devenshire" wrote:

> Hi,
>
> This question is unclear, what do you mean by highest occurance? what do
> 2009 dates have to do with the 2008 dates?
>
> Cheers,
> Shane Devenshire
>
> "Eric" wrote:
>
> > Does anyone have any suggestions on how to determine the date?
> > There is a list of date under column A, and a given number 3 in cell B1
> > I would like to determine the highest occurrence +/- 3 days
> >
> > If I select the date 11-Jan-08, the range will be between 8-Jan-08 and
> > 14-Jan-08.
> > For the occurrence on 11--Jan-08, it should return 2 in cell C1.
> > Does anyone have any suggestions on how to determine the highest occurrence?
> > Thanks in advance for any suggestions
> > Eric
> >
> > 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
> > ...
> >

 
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
Highest occurrence of a value from a list tsison7 Microsoft Access 4 27th Jan 2008 11:37 AM
How to determine the occurrence between periods? =?Utf-8?B?RXJpYw==?= Microsoft Excel Misc 1 14th Sep 2007 04:52 PM
How to find out the 3 highest occurrence of number from a list? =?Utf-8?B?RXJpYw==?= Microsoft Excel Misc 5 15th Aug 2007 04:40 PM
How to determine second (and then third) highest value in a list Scott M. Lyon Microsoft Excel Misc 2 12th Sep 2005 11:09 PM


Features
 

Advertising
 

Newsgroups
 


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