Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
klam
 
Posts: n/a
Default Array Formula help pls.

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,

  #2   Report Post  
bj
 
Posts: n/a
Default

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

"klam" wrote:

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,

  #3   Report Post  
klam
 
Posts: n/a
Default

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,





"bj" wrote:

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

"klam" wrote:

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,

  #4   Report Post  
bj
 
Posts: n/a
Default

try
=sumproduct(--(F$2:F$133="Region 1"),--(isnumber(G$2:G$133)))


"klam" wrote:

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,





"bj" wrote:

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

"klam" wrote:

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,

  #5   Report Post  
klam
 
Posts: n/a
Default

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,

"bj" wrote:

try
=sumproduct(--(F$2:F$133="Region 1"),--(isnumber(G$2:G$133)))


"klam" wrote:

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,





"bj" wrote:

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

"klam" wrote:

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,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
How can you use count with an array formula similar to using sum PhilH Excel Worksheet Functions 3 June 27th 05 08:00 AM
Trouble shooting#NA error in Array formula RonR Excel Discussion (Misc queries) 2 June 14th 05 09:58 PM
Changing a range of an array in a SUMPRODUCT formula gives a #N/A error Chrism Excel Discussion (Misc queries) 4 May 4th 05 04:06 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 02:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"