PC Review


Reply
Thread Tools Rate Thread

Count occurances of a name over previous 12 months

 
 
durbat2@googlemail.com
Guest
Posts: n/a
 
      30th Jun 2008
Hi

I have a spreadsheet to track operator movements etc
Col A lists the name of the operators
Col B lists the date of an event relating to a particular operator

What I need to be able to do is count back 12 months from the date I
enter in col B and count the number of occurances of the name I
entered in Col A

Eg if Joe Bloggs name is entered on 30/06/08 I need to know how many
time Joe Bloggs appears between 30/06/08 and 30/06/07

Hope this makes sense and you can offer some suggestions

Thanks
Martin
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      30th Jun 2008
=SUMPRODUCT(--($A$2:$A$200=A2),--($B$2:$B$200<=B2),--($B$2:$B$200>=DATE(YEAR(B2)-1,MONTH(B2),DAY(B2))))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"(E-Mail Removed)" <(E-Mail Removed)> wrote in message
news:f6b8f331-42d1-4662-9162-(E-Mail Removed)...
> Hi
>
> I have a spreadsheet to track operator movements etc
> Col A lists the name of the operators
> Col B lists the date of an event relating to a particular operator
>
> What I need to be able to do is count back 12 months from the date I
> enter in col B and count the number of occurances of the name I
> entered in Col A
>
> Eg if Joe Bloggs name is entered on 30/06/08 I need to know how many
> time Joe Bloggs appears between 30/06/08 and 30/06/07
>
> Hope this makes sense and you can offer some suggestions
>
> Thanks
> Martin



 
Reply With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      30th Jun 2008
=SUM(IF((A1:A1000="Joe
Bolggs")*(B1:B1000>="30/06/07")*(B1:B1000=<"30/06/08"),1,0))

array-enter it i.e. CTRL+SHIFT+ENTER
 
Reply With Quote
 
durbat2@googlemail.com
Guest
Posts: n/a
 
      30th Jun 2008
On Jun 30, 2:35*pm, "Bob Phillips" <bob....@somewhere.com> wrote:
> =SUMPRODUCT(--($A$2:$A$200=A2),--($B$2:$B$200<=B2),--($B$2:$B$200>=DATE(YEA*R(B2)-1,MONTH(B2),DAY(B2))))
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
> "durb...@googlemail.com" <mn.bags...@btinternet.com> wrote in message
>
> news:f6b8f331-42d1-4662-9162-(E-Mail Removed)...
>
>
>
> > Hi

>
> > I have a spreadsheet to track operator movements etc
> > Col A lists the name of the operators
> > Col B lists the date of an event relating to a particular operator

>
> > What I need to be able to do is count back 12 months from the date I
> > enter in col B and count the number of occurances of the name I
> > entered in Col A

>
> > Eg if Joe Bloggs name is entered on 30/06/08 I need to know how many
> > time Joe Bloggs appears between 30/06/08 and 30/06/07

>
> > Hope this makes sense and you can offer some suggestions

>
> > Thanks
> > Martin- Hide quoted text -

>
> - Show quoted text -


Thanks Bob

That does exactly what I need but there is one final question, suppose
Joe Bloggs has 6 occurances in the last 12 months. In Col K 2
occurances could have the text "wa" against them. I need to ignore and
subract these 2 results and only count 4 of the ocurances.

This is the last question honest

Regards
Martin
 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      1st Jul 2008
=SUMPRODUCT(--($A$2:$A$200=A2),
--($B$2:$B$200<=B2),--($B$2:$B$200>=DATE(YEA*R(B2)-1,MONTH(B2),DAY(B2))),
--($K$2:$K$200<>"wa"))


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"(E-Mail Removed)" <(E-Mail Removed)> wrote in message
news:83f1c7e6-52e0-430a-ae61-(E-Mail Removed)...
On Jun 30, 2:35 pm, "Bob Phillips" <bob....@somewhere.com> wrote:
> =SUMPRODUCT(--($A$2:$A$200=A2),--($B$2:$B$200<=B2),--($B$2:$B$200>=DATE(YEA*R(B2)-1,MONTH(B2),DAY(B2))))
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my
> addy)
>
> "durb...@googlemail.com" <mn.bags...@btinternet.com> wrote in message
>
> news:f6b8f331-42d1-4662-9162-(E-Mail Removed)...
>
>
>
> > Hi

>
> > I have a spreadsheet to track operator movements etc
> > Col A lists the name of the operators
> > Col B lists the date of an event relating to a particular operator

>
> > What I need to be able to do is count back 12 months from the date I
> > enter in col B and count the number of occurances of the name I
> > entered in Col A

>
> > Eg if Joe Bloggs name is entered on 30/06/08 I need to know how many
> > time Joe Bloggs appears between 30/06/08 and 30/06/07

>
> > Hope this makes sense and you can offer some suggestions

>
> > Thanks
> > Martin- Hide quoted text -

>
> - Show quoted text -


Thanks Bob

That does exactly what I need but there is one final question, suppose
Joe Bloggs has 6 occurances in the last 12 months. In Col K 2
occurances could have the text "wa" against them. I need to ignore and
subract these 2 results and only count 4 of the ocurances.

This is the last question honest

Regards
Martin


 
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
Re: Count Occurances Bernd P Microsoft Excel Misc 0 4th Jan 2010 07:09 PM
Re: Count Occurances Bernard Liengme Microsoft Excel Misc 0 4th Jan 2010 04:08 PM
Count occurances Gaurav Microsoft Excel Worksheet Functions 1 26th Apr 2008 01:11 AM
Show previous months reading on new months record =?Utf-8?B?R2FiYnkgR2lybA==?= Microsoft Access Forms 4 30th Sep 2007 05:15 AM
count occurances kevcar40 Microsoft Excel Misc 3 13th Jun 2007 10:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:31 PM.