Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Count occurances of a name over previous 12 months

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Count occurances of a name over previous 12 months

=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)

" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Count occurances of a name over previous 12 months

=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
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Count occurances of a name over previous 12 months

On Jun 30, 2:35*pm, "Bob Phillips" 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)

" wrote in message

...



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
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Count occurances of a name over previous 12 months

=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)

" wrote in message
...
On Jun 30, 2:35 pm, "Bob Phillips" 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)

" wrote in message

...



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
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
Count occurances Gaurav[_2_] Excel Worksheet Functions 1 April 26th 08 01:11 AM
Count of different occurances Bee Excel Discussion (Misc queries) 3 October 8th 07 03:36 AM
Count Occurances of a txt string flumpuk Excel Discussion (Misc queries) 1 September 1st 07 01:04 PM
count occurances kevcar40 Excel Discussion (Misc queries) 3 June 13th 07 10:00 PM
how to keep previous months' data braadi Excel Worksheet Functions 0 February 9th 06 03:51 PM


All times are GMT +1. The time now is 09:19 AM.

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"