Inconsistent Array Count results

G

Guest

In my CY 2005 timekeeping workbook I have a count function that works fine.
In my identical CY 2006 workbook, the count function is not working fine.

The result I'm trying to get is:
1. If Other!C9 has something in it, count it +
2. If cells in Other!A16:A21 = "MAR" count instances of entries in range
C16:C21

{=(COUNT('Other'!C9))+(IF('Other'!A16:A21="MAR",COUNT('Other'!C16:C21)))}

I've checked formatting on both sheets ('Other' and the sheet with the
formula) -- everything is identical from one book to the next. And no, I
can't copy the working worksheet over.

These worksheets contain inspection dates for numerous facilities and the
number I'm trying to get is if more than one inspection was conducted during
a given month (in this case, March).
 
G

Guest

New discovery...
I'm now sure that the formula stops looking for "MAR" if it encounters
anything else in the list first (e.g., Other!A16="FEB")

So, perhaps the better question is how do I fix this so the data results
are obtained from the entire range of Other!A16:A21?
 
B

Bob Phillips

Try

=--('Other'!C9<>"")+SUMPRODUCT(--('Other'!A16:A21,"MAR"),--('Other'!C16:C21)
)

not an array formula


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

Thanks very much... Now I have to figure out how this formula came up with
the right response (I've not used sumproduct or isnumber before).
 
G

Guest

This formula didn't work.

Bob Phillips said:
Try

=--('Other'!C9<>"")+SUMPRODUCT(--('Other'!A16:A21,"MAR"),--('Other'!C16:C21)
)

not an array formula


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top