#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default count

I have daily dates (mm/dd/yyyy) in colA and text in colB. In cell C2 I have
03/2008 (mm/yy). I need a formula : count colB when A:A=C2. Thanks! -Mona
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default count

Try
=SUMPRODUCT((TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")) *B1:B100)

If this post helps click Yes
---------------
Jacob Skaria


"Mona" wrote:

I have daily dates (mm/dd/yyyy) in colA and text in colB. In cell C2 I have
03/2008 (mm/yy). I need a formula : count colB when A:A=C2. Thanks! -Mona

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count

Try this:

=SUMPRODUCT(--(MONTH(A1:A10)=MONTH(C2)),--(YEAR(A1:A10)=YEAR(C2)),--(B1:B10<""))

--
Biff
Microsoft Excel MVP


"Mona" wrote in message
...
I have daily dates (mm/dd/yyyy) in colA and text in colB. In cell C2 I
have
03/2008 (mm/yy). I need a formula : count colB when A:A=C2.
Thanks! -Mona



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default count

Hi,

Try this. "Sometext" is the String your looking for in column B

=SUMPRODUCT((TEXT(A1:A1000,"mmyy")=TEXT(C2,"mmyy") )*(B1:B1000="Sometext"))


Mike

"Mona" wrote:

I have daily dates (mm/dd/yyyy) in colA and text in colB. In cell C2 I have
03/2008 (mm/yy). I need a formula : count colB when A:A=C2. Thanks! -Mona

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default count

I tried and I get a "#value". I am trying to count the text in colB or
simply count each cell. Thanks

"Jacob Skaria" wrote:

Try
=SUMPRODUCT((TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")) *B1:B100)

If this post helps click Yes
---------------
Jacob Skaria


"Mona" wrote:

I have daily dates (mm/dd/yyyy) in colA and text in colB. In cell C2 I have
03/2008 (mm/yy). I need a formula : count colB when A:A=C2. Thanks! -Mona



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default count

Try the below
=SUMPRODUCT(--(TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")),--(B1:B100<""))

=SUMPRODUCT(--(TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")))

If this post helps click Yes
---------------
Jacob Skaria


"Mona" wrote:

I tried and I get a "#value". I am trying to count the text in colB or
simply count each cell. Thanks

"Jacob Skaria" wrote:

Try
=SUMPRODUCT((TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")) *B1:B100)

If this post helps click Yes
---------------
Jacob Skaria


"Mona" wrote:

I have daily dates (mm/dd/yyyy) in colA and text in colB. In cell C2 I have
03/2008 (mm/yy). I need a formula : count colB when A:A=C2. Thanks! -Mona

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default count

I should have added if you want to count anything in column B use this

=SUMPRODUCT((TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")) *(B1:B100<""))

Mike

"Mike H" wrote:

Hi,

Try this. "Sometext" is the String your looking for in column B

=SUMPRODUCT((TEXT(A1:A1000,"mmyy")=TEXT(C2,"mmyy") )*(B1:B1000="Sometext"))


Mike

"Mona" wrote:

I have daily dates (mm/dd/yyyy) in colA and text in colB. In cell C2 I have
03/2008 (mm/yy). I need a formula : count colB when A:A=C2. Thanks! -Mona

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default count

Thank you Jacob! This works!

"Jacob Skaria" wrote:

Try the below
=SUMPRODUCT(--(TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")),--(B1:B100<""))

=SUMPRODUCT(--(TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")))

If this post helps click Yes
---------------
Jacob Skaria


"Mona" wrote:

I tried and I get a "#value". I am trying to count the text in colB or
simply count each cell. Thanks

"Jacob Skaria" wrote:

Try
=SUMPRODUCT((TEXT(A1:A100,"mmyy")=TEXT(C2,"mmyy")) *B1:B100)

If this post helps click Yes
---------------
Jacob Skaria


"Mona" wrote:

I have daily dates (mm/dd/yyyy) in colA and text in colB. In cell C2 I have
03/2008 (mm/yy). I need a formula : count colB when A:A=C2. Thanks! -Mona

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 Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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