Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default COUNTIF() With multiple ranges and variables

The function I am looking for is something that will simply look at 2
ranges (euqaly large) and only count them if they meet 2 criteria on
the same row

EX:

A B
1 1
1 2
1 3
2 1
2 2
2 3

So what I am sorta looking for is something that would count the
instances where A = 1 and B 1.

I can't figgure out a propper function for this.

Any help would be appreciated.

AlexV

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default COUNTIF() With multiple ranges and variables

=SUMPRODUCT(--(A1:A6=1),--(B1:B61))

"Thansal" wrote:

The function I am looking for is something that will simply look at 2
ranges (euqaly large) and only count them if they meet 2 criteria on
the same row

EX:

A B
1 1
1 2
1 3
2 1
2 2
2 3

So what I am sorta looking for is something that would count the
instances where A = 1 and B 1.

I can't figgure out a propper function for this.

Any help would be appreciated.

AlexV


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default COUNTIF() With multiple ranges and variables

Thank you all.

It took me a long time, but that was b/c I had an error in my data that
I had not caught.
Sloth wrote:
=SUMPRODUCT(--(A1:A6=1),--(B1:B61))

"Thansal" wrote:

The function I am looking for is something that will simply look at 2
ranges (euqaly large) and only count them if they meet 2 criteria on
the same row

EX:

A B
1 1
1 2
1 3
2 1
2 2
2 3

So what I am sorta looking for is something that would count the
instances where A = 1 and B 1.

I can't figgure out a propper function for this.

Any help would be appreciated.

AlexV



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
Using variables in Chart Ranges [email protected] Charts and Charting in Excel 1 May 9th 06 12:56 AM
Cell Variables and Ranges jcottam Excel Discussion (Misc queries) 2 March 31st 06 07:33 PM
linest won't accept multiple reference ranges Alex Gardner Excel Worksheet Functions 3 May 18th 05 01:20 PM
How do you populate the X variables in Regression analysis for mo. tjp32 Excel Worksheet Functions 1 April 4th 05 09:29 PM
How do I automatically plot different ranges of data in different. 3D-charting Charts and Charting in Excel 1 February 2nd 05 02:40 PM


All times are GMT +1. The time now is 03:23 PM.

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

About Us

"It's about Microsoft Excel"