Thread: Counting
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_163_] Rick Rothstein \(MVP - VB\)[_163_] is offline
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?