Thread: Counting
View Single Post
  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Civette Civette is offline
external usenet poster
 
Posts: 11
Default Counting

I'm back to report on "partial success" .
I tried all of the suggestions provided in both threads and tried many
variations of said suggestions.

The following produced the best results,but when I did a manual check the
answere generated by the formula is not consistent with the data.
=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869<""))

For instance I am expecting the formula to return an answer of "28" and in 4
out of 5 instances (using a different value for the E ranges) it undercount.
The bigger the "E" data pool the bigger the difference between what the
answer should be and what the formula returned. In 1 instance it was spot on
but the E data pool was small (<25 records).

I've manipulated how it serches the date field and see no variation. But, I
still believe my problem my be in the date field because the "1247.24" field
gives me a consistent number whether I use"1247.24" or follow Biff's
suggestion of using a cell to hold the criteria. I tried using a cell to
hold the date criteria and the formula returns a correct answer becuase it
searches for a specific date. Unfortunately, I don't care about a specific
date, I want to pickup any cell in the second range that has a date.

The only thing I can think of is that for some reason the date fields that
should be counted are not being counted, but I stumped as to why. Could
merged cells impact the formula? Could hard spaces or blank lines within the
cell, before the date inpact the formula?

"Pete_UK" wrote:

Well, that's good to hear - thanks for feeding back.

Can you set our minds to rest, though, and tell us what you did - what was
wrong with the data that made all those suggested formulae not work?

Pete

"Civette" wrote in message
...
IT worked. Yeah. I did a bit of data manipulation and it's working.
Thank
you all for your help

"Pete_UK" wrote:

It might also be that the number that looks like 1247.24 is not actually
that value - if the cell is formatted to 2 dp then it could be any number
between 1247.235 and 1247.2449999etc, so you might like to change the
first
condition to:

(ROUND(E4:E869,2)=1247.24)

Hope this helps.

Pete

"Pete_UK" wrote in message
...
Yes, it might be that your dates are text values that just look like
dates, or that the numbers in column E are not really numbers but text
values also. I see in your comments to Biff that you are not searching
for
a specific date, so you might like to try these:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869<""))
and:
=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869<""))

to see which of them give you an answer other than zero.

Hope this helps.

Pete

"Civette" wrote in message
...
Tried, and it didn't work. Could I be getting snagged on some type of
formatting glitch?

"Pete_UK" wrote:

Try it this way:

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

You can't mix up text and numbers.

Hope this helps.

Pete

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