Thread: Counting
View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Counting

a date (any date) appears in the second column.

Hmmm....

You say "any date" but yet you're testing for a specific date criteria!

Try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(AC4:AC869=DATE(2006,1,1)))

Better to use cells to hold the criteria then you won't get messed up with
quotation marks:

A1 = 1247.24
B1 = 1/1/2006

=SUMPRODUCT(--(E4:E869=A1),--(AC4:AC869=B1))


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))