Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Array formula?

I want a count based on 2 criteria in columns E & F in rows 3 to 29 in
the sheet. For example, I want to sum the number of times where both
an "A" occurs in column E and a "y" occurs in column F. I understand
that this would require an array formula, but haven't worked with them
much and don't really understand them at all. Can someone suggest the
formula for doing this?
Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Array formula?

It doesn't.

=SUMPRODUCT(--(E3:E29="A"),--(F3:F29="y"))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"davegb" wrote in message
ups.com...
I want a count based on 2 criteria in columns E & F in rows 3 to 29 in
the sheet. For example, I want to sum the number of times where both
an "A" occurs in column E and a "y" occurs in column F. I understand
that this would require an array formula, but haven't worked with them
much and don't really understand them at all. Can someone suggest the
formula for doing this?
Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Array formula?

On Apr 27, 9:50 am, "Bob Phillips" wrote:
It doesn't.

=SUMPRODUCT(--(E3:E29="A"),--(F3:F29="y"))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"davegb" wrote in message

ups.com...



I want a count based on 2 criteria in columns E & F in rows 3 to 29 in
the sheet. For example, I want to sum the number of times where both
an "A" occurs in column E and a "y" occurs in column F. I understand
that this would require an array formula, but haven't worked with them
much and don't really understand them at all. Can someone suggest the
formula for doing this?
Thanks!- Hide quoted text -


- Show quoted text -


Very interesting! Never saw the -- in XL before. It does create a
problem though in that it automatically merges 2 cells when I paste it
in. Why is this and is there a way to put this formula in a single
cell?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Array formula?

That shouldn't happen, try pasting it into the formula bar, rather than
direct cell entry.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

Very interesting! Never saw the -- in XL before. It does create a
problem though in that it automatically merges 2 cells when I paste it
in. Why is this and is there a way to put this formula in a single
cell?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Array formula?

=COUNTIF(E3:E29,"A")+COUNTIF(F3:F29,"Y")

"davegb" wrote:

I want a count based on 2 criteria in columns E & F in rows 3 to 29 in
the sheet. For example, I want to sum the number of times where both
an "A" occurs in column E and a "y" occurs in column F. I understand
that this would require an array formula, but haven't worked with them
much and don't really understand them at all. Can someone suggest the
formula for doing this?
Thanks!




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Array formula?

On Apr 27, 9:56 am, Mike wrote:
=COUNTIF(E3:E29,"A")+COUNTIF(F3:F29,"Y")


Thanks, but this would give me the total of the A's in column E and
the y's in column F. I want the number of occurences where there is
both a A in E and a y in F.



"davegb" wrote:
I want a count based on 2 criteria in columns E & F in rows 3 to 29 in
the sheet. For example, I want to sum the number of times where both
an "A" occurs in column E and a "y" occurs in column F. I understand
that this would require an array formula, but haven't worked with them
much and don't really understand them at all. Can someone suggest the
formula for doing this?
Thanks!- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Array formula?

I would use a database function:

=DCOUNTA(E3:F29,1,I1:J2)

Using this structu

E F I J
1 Col1 Col2
2 A Y
3 Col1 Col2
4 A Y
5 B A
6 C A
7 A Y
8 E A


Regards,
David Miller

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Array formula?

On Apr 27, 10:15 am, Dave Miller wrote:
I would use a database function:

=DCOUNTA(E3:F29,1,I1:J2)

Using this structu

E F I J
1 Col1 Col2
2 A Y
3 Col1 Col2
4 A Y
5 B A
6 C A
7 A Y
8 E A

Regards,
David Miller


Very interesting! Will have to do some research on this one. It
definitely doesn't work to just cut and paste it. When I have some
time....

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 947
Default Array formula?

Hi. Excel 20007:

=COUNTIFS(E3:E29,"A",F3:F29,"y")

--
HTH :)
Dana DeLouis


"davegb" wrote in message
ups.com...
I want a count based on 2 criteria in columns E & F in rows 3 to 29 in
the sheet. For example, I want to sum the number of times where both
an "A" occurs in column E and a "y" occurs in column F. I understand
that this would require an array formula, but haven't worked with them
much and don't really understand them at all. Can someone suggest the
formula for doing this?
Thanks!



  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Array formula?

On Apr 27, 10:51 am, "Dana DeLouis" wrote:
Hi. Excel 20007:

=COUNTIFS(E3:E29,"A",F3:F29,"y")

--
HTH :)
Dana DeLouis

"davegb" wrote in message

ups.com...



I want a count based on 2 criteria in columns E & F in rows 3 to 29 in
the sheet. For example, I want to sum the number of times where both
an "A" occurs in column E and a "y" occurs in column F. I understand
that this would require an array formula, but haven't worked with them
much and don't really understand them at all. Can someone suggest the
formula for doing this?
Thanks!- Hide quoted text -


- Show quoted text -


Thanks for the idea. Maybe it's because I'm using XL2000, but I have
no COUNTIFS function, and get a #NAME error on your formula, whether I
enter it nromally or as an array forumula.



  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 947
Default Array formula?

Hi. Yes, it's an Excel 2007 function.
You didn't mention which version you had, so I thought I'd throw it out as
an alternative.
--
Dana DeLouis

Thanks for the idea. Maybe it's because I'm using XL2000, but I have
no COUNTIFS function, and get a #NAME error on your formula, whether I
enter it nromally or as an array forumula.


=COUNTIFS(E3:E29,"A",F3:F29,"y")



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
Array formula SUMIF with 2D sum_range array Rich_84 Excel Worksheet Functions 3 April 3rd 09 10:46 PM
Array formula: how to join 2 ranges together to form one array? Rich_84 Excel Worksheet Functions 2 April 1st 09 06:38 PM
Find specific value in array of array formula DzednConfsd Excel Worksheet Functions 2 January 13th 09 06:19 AM
copy one array formula to an array range guedj54 Excel Programming 2 October 29th 06 07:38 PM
Tricky array formula issue - Using array formula on one cell, then autofilling down a range aspenbordr Excel Programming 0 July 27th 05 03:59 PM


All times are GMT +1. The time now is 01:28 PM.

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"