Array Formula help pls.

G

Guest

I have different Regions listed in Column F and will enter dates (dd-MMM ) in
Column G when a certain event happens. I would like to count the number of
occurances for each Region only if there is a date in Column G.

I am using the array formula:

=COUNT(IF(F$2:F$133="Region 1",G$2:G$133))

but it returns the number of occurances of "Region 1", instead of counting
the number of times a date shows up in G2 to G133.

Can anyone see what I am doing wrong?

Excel 2000 on XP
cheers,
 
G

Guest

countif would really work here
one option is Sumproduct()
=sumproduct(--(F$2:F$133="Region 1"),--(G$2:G$133<>""))
the --( changes the logical true false to a numeric 1,0. the arrays in each
section must be the same size but cannot be the short hand for full columns
or rows
 
G

Guest

bj,

Thx a mint for your suggestion.

It almost works...

Column G will either have text or the date or be blank, and I only want to
count the ones with a date in it. (Sorry I wasn't clearer on that in my
first post.)

How should I modify your formula to just count a value?

cheers,
 
G

Guest

Thx bj.

Yes, that worked like a charm.

When I was trying to figure it out for quite a while this morning, I did try
a formula with ISNUMBER, but obviously I didn't pair it correctly. Even
after reading a lot of the Excel help on worksheet functions, things that
sound easy to do end up being complicated formulas (=

thx a mint. cheers,
 

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