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

On my worksheet Column A contains dates 1/1/08 thru 12/31/08 (A2:A367)
Column B contains entries for dates in Column A. When I select a certain
date I want to be able to count the cells in Column B that contains a number
up to and including the date selected. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Counting

sounds like you want

=sumproduct(--(A2:A367<=date selected),B2:B367)

"ronbwa" wrote:

On my worksheet Column A contains dates 1/1/08 thru 12/31/08 (A2:A367)
Column B contains entries for dates in Column A. When I select a certain
date I want to be able to count the cells in Column B that contains a number
up to and including the date selected. Can anyone help?

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

I just want to count the number of cells that have a number in them in Column
B not the sum of the contents of the cells with respect to the date selected.

"Sean Timmons" wrote:

sounds like you want

=sumproduct(--(A2:A367<=date selected),B2:B367)

"ronbwa" wrote:

On my worksheet Column A contains dates 1/1/08 thru 12/31/08 (A2:A367)
Column B contains entries for dates in Column A. When I select a certain
date I want to be able to count the cells in Column B that contains a number
up to and including the date selected. Can anyone help?

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

Does this do what you want?

=SUMPRODUCT((A2:A367<=date selected)*(A2:A367<""))

Rick


"ronbwa" wrote in message
...
I just want to count the number of cells that have a number in them in
Column
B not the sum of the contents of the cells with respect to the date
selected.

"Sean Timmons" wrote:

sounds like you want

=sumproduct(--(A2:A367<=date selected),B2:B367)

"ronbwa" wrote:

On my worksheet Column A contains dates 1/1/08 thru 12/31/08 (A2:A367)
Column B contains entries for dates in Column A. When I select a
certain
date I want to be able to count the cells in Column B that contains a
number
up to and including the date selected. Can anyone help?


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

Thank you, thank you, thank you! Just had to alter a bit, but got what I wanted

=SUMPRODUCT((Sheet1!A2:A367<=D6)*(Sheet1!B2:B367< ""))

"Rick Rothstein (MVP - VB)" wrote:

Does this do what you want?

=SUMPRODUCT((A2:A367<=date selected)*(A2:A367<""))

Rick


"ronbwa" wrote in message
...
I just want to count the number of cells that have a number in them in
Column
B not the sum of the contents of the cells with respect to the date
selected.

"Sean Timmons" wrote:

sounds like you want

=sumproduct(--(A2:A367<=date selected),B2:B367)

"ronbwa" wrote:

On my worksheet Column A contains dates 1/1/08 thru 12/31/08 (A2:A367)
Column B contains entries for dates in Column A. When I select a
certain
date I want to be able to count the cells in Column B that contains a
number
up to and including the date selected. Can anyone help?





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

May I ask what <"" refers to?

"ronbwa" wrote:

Thank you, thank you, thank you! Just had to alter a bit, but got what I wanted

=SUMPRODUCT((Sheet1!A2:A367<=D6)*(Sheet1!B2:B367< ""))

"Rick Rothstein (MVP - VB)" wrote:

Does this do what you want?

=SUMPRODUCT((A2:A367<=date selected)*(A2:A367<""))

Rick


"ronbwa" wrote in message
...
I just want to count the number of cells that have a number in them in
Column
B not the sum of the contents of the cells with respect to the date
selected.

"Sean Timmons" wrote:

sounds like you want

=sumproduct(--(A2:A367<=date selected),B2:B367)

"ronbwa" wrote:

On my worksheet Column A contains dates 1/1/08 thru 12/31/08 (A2:A367)
Column B contains entries for dates in Column A. When I select a
certain
date I want to be able to count the cells in Column B that contains a
number
up to and including the date selected. Can anyone help?



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Counting

Is not blank (less than or greater than null)

"ronbwa" wrote:

May I ask what <"" refers to?

"ronbwa" wrote:

Thank you, thank you, thank you! Just had to alter a bit, but got what I wanted

=SUMPRODUCT((Sheet1!A2:A367<=D6)*(Sheet1!B2:B367< ""))

"Rick Rothstein (MVP - VB)" wrote:

Does this do what you want?

=SUMPRODUCT((A2:A367<=date selected)*(A2:A367<""))

Rick


"ronbwa" wrote in message
...
I just want to count the number of cells that have a number in them in
Column
B not the sum of the contents of the cells with respect to the date
selected.

"Sean Timmons" wrote:

sounds like you want

=sumproduct(--(A2:A367<=date selected),B2:B367)

"ronbwa" wrote:

On my worksheet Column A contains dates 1/1/08 thru 12/31/08 (A2:A367)
Column B contains entries for dates in Column A. When I select a
certain
date I want to be able to count the cells in Column B that contains a
number
up to and including the date selected. Can anyone help?


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

Thank you

"Sean Timmons" wrote:

Is not blank (less than or greater than null)

"ronbwa" wrote:

May I ask what <"" refers to?

"ronbwa" wrote:

Thank you, thank you, thank you! Just had to alter a bit, but got what I wanted

=SUMPRODUCT((Sheet1!A2:A367<=D6)*(Sheet1!B2:B367< ""))

"Rick Rothstein (MVP - VB)" wrote:

Does this do what you want?

=SUMPRODUCT((A2:A367<=date selected)*(A2:A367<""))

Rick


"ronbwa" wrote in message
...
I just want to count the number of cells that have a number in them in
Column
B not the sum of the contents of the cells with respect to the date
selected.

"Sean Timmons" wrote:

sounds like you want

=sumproduct(--(A2:A367<=date selected),B2:B367)

"ronbwa" wrote:

On my worksheet Column A contains dates 1/1/08 thru 12/31/08 (A2:A367)
Column B contains entries for dates in Column A. When I select a
certain
date I want to be able to count the cells in Column B that contains a
number
up to and including the date selected. Can anyone help?


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

It means "not equal to". In a numerical comparison, blanks are treated as
zero and, if you had any blank values in Column A, would affect the count
being performed. By the way, if you do NOT (and NEVER will) have any blank
cells in your range, you can remove that term and just use this...

=SUMPRODUCT(--(Sheet1!A2:A367<=D6))

where the double unary (--) symbol is a method to convert Boolean
(TRUE/FALSE) values to numerical values (1/0) so that an addition can be
performed with them.

Rick


"ronbwa" wrote in message
...
May I ask what <"" refers to?

"ronbwa" wrote:

Thank you, thank you, thank you! Just had to alter a bit, but got what I
wanted

=SUMPRODUCT((Sheet1!A2:A367<=D6)*(Sheet1!B2:B367< ""))

"Rick Rothstein (MVP - VB)" wrote:

Does this do what you want?

=SUMPRODUCT((A2:A367<=date selected)*(A2:A367<""))

Rick


"ronbwa" wrote in message
...
I just want to count the number of cells that have a number in them in
Column
B not the sum of the contents of the cells with respect to the date
selected.

"Sean Timmons" wrote:

sounds like you want

=sumproduct(--(A2:A367<=date selected),B2:B367)

"ronbwa" wrote:

On my worksheet Column A contains dates 1/1/08 thru 12/31/08
(A2:A367)
Column B contains entries for dates in Column A. When I select a
certain
date I want to be able to count the cells in Column B that
contains a
number
up to and including the date selected. Can anyone help?



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
counting function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
Counting Voodoodan Excel Discussion (Misc queries) 11 March 23rd 06 09:34 PM
Help Counting SS Excel Worksheet Functions 3 March 14th 06 06:27 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM


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