Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
AAS AAS is offline
external usenet poster
 
Posts: 24
Default countif, range and criteria

I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default countif, range and criteria

=sumproduct((a2:a22="criteriaone")*(b2:b22=1))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"AAS" wrote in message
...
I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default countif, range and criteria

You can accomplish multiple criteria results using Array functions. Take a
look at Chip Pearson's web page at the following URL and scroll down until
you find the section on Logical Functions with arrays:

http://www.cpearson.com/excel/ArrayFormulas.aspx

Hope this points you in the proper direction...
--
Kevin Backmann


"AAS" wrote:

I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
AAS AAS is offline
external usenet poster
 
Posts: 24
Default countif, range and criteria

still not to sure what im doing wrong here. i've got two worksheets, i'm
using this formula on worksheet 2. i have two columns on worksheet one,
column 1's criteria is called "Memco", column 2's criteria is "PFH". I would
like to take all the memco in column 1 that also have PFH in column 2 and
count them.


worksheet 1
worksheet 2

Don Jones Memco PFH
quantity- 2
Jerry Davids
Tom Tanner Memco
John Doe Memco PFH

The answer would be two to this example






"Don Guillett" wrote:

=sumproduct((a2:a22="criteriaone")*(b2:b22=1))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"AAS" wrote in message
...
I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.misc
AAS AAS is offline
external usenet poster
 
Posts: 24
Default countif, range and criteria

worksheet 1

Don Jones Memco PFH
Jerry Davids
Tom Tanner Memco
John Doe Memco PFH


worksheet 2

quantity 2



the answer would be two to this example


"AAS" wrote:

still not to sure what im doing wrong here. i've got two worksheets, i'm
using this formula on worksheet 2. i have two columns on worksheet one,
column 1's criteria is called "Memco", column 2's criteria is "PFH". I would
like to take all the memco in column 1 that also have PFH in column 2 and
count them.


worksheet 1
worksheet 2

Don Jones Memco PFH
quantity- 2
Jerry Davids
Tom Tanner Memco
John Doe Memco PFH

The answer would be two to this example






"Don Guillett" wrote:

=sumproduct((a2:a22="criteriaone")*(b2:b22=1))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"AAS" wrote in message
...
I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default countif, range and criteria

in your previous formula, replace rng=value by (rng1=value1)*(rng2=value2).

Other than that give us some example data and your formula.

--
---
HTH

Bob


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



"AAS" wrote in message
...
I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.



  #7   Report Post  
Posted to microsoft.public.excel.misc
AAS AAS is offline
external usenet poster
 
Posts: 24
Default countif, range and criteria

worksheet 1

John Doe Memco PFH
Jerry Jones PFH
Tom Tanner Memco
David Toms Memco PFH
Jeff Smith Memco

worksheet 2

quantity 2

I am trying to count how many employees are Memco and PFH both. I have been
trying to use the countif formula but cannot figure out how to use two
criteria. The formula is being used on worksheet 2.









"Bob Phillips" wrote:

in your previous formula, replace rng=value by (rng1=value1)*(rng2=value2).

Other than that give us some example data and your formula.

--
---
HTH

Bob


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



"AAS" wrote in message
...
I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default countif, range and criteria

=SUMPRODUCT(--(B2:B20="Memco"),--(C2:C20="PFH"))

--
---
HTH

Bob


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



"AAS" wrote in message
...
worksheet 1

John Doe Memco PFH
Jerry Jones PFH
Tom Tanner Memco
David Toms Memco PFH
Jeff Smith Memco

worksheet 2

quantity 2

I am trying to count how many employees are Memco and PFH both. I have
been
trying to use the countif formula but cannot figure out how to use two
criteria. The formula is being used on worksheet 2.









"Bob Phillips" wrote:

in your previous formula, replace rng=value by
(rng1=value1)*(rng2=value2).

Other than that give us some example data and your formula.

--
---
HTH

Bob


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



"AAS" wrote in message
...
I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.






  #9   Report Post  
Posted to microsoft.public.excel.misc
AAS AAS is offline
external usenet poster
 
Posts: 24
Default countif, range and criteria

=SUMPRODUCT('Production Calendar'--(C11:C97="Memco"),--(D11:D97="PFH"))

this is my exact formula that will not work(it comes up as an error). i am
taking columns C and D from worksheet 1 and if two of the columns are the
same then i want it to count them.
thanks alot









"Bob Phillips" wrote:

=SUMPRODUCT(--(B2:B20="Memco"),--(C2:C20="PFH"))

--
---
HTH

Bob


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



"AAS" wrote in message
...
worksheet 1

John Doe Memco PFH
Jerry Jones PFH
Tom Tanner Memco
David Toms Memco PFH
Jeff Smith Memco

worksheet 2

quantity 2

I am trying to count how many employees are Memco and PFH both. I have
been
trying to use the countif formula but cannot figure out how to use two
criteria. The formula is being used on worksheet 2.









"Bob Phillips" wrote:

in your previous formula, replace rng=value by
(rng1=value1)*(rng2=value2).

Other than that give us some example data and your formula.

--
---
HTH

Bob


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



"AAS" wrote in message
...
I have a set range but now I would like to narrow that down by using two
criteria. I used one criteria before but now I have two. Any advice is
greatly appreciated. Thanks.






  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default countif, range and criteria

If, and that is a big IF as you are not telling, worksheet 1 is 'Production
Calendar' then

=SUMPRODUCT(--('Production Calendar'!C11:C97="Memco"),--('Production
Calendar'!D11:D97="PFH"))


--
---
HTH

Bob


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



"AAS" wrote in message
...
=SUMPRODUCT('Production Calendar'--(C11:C97="Memco"),--(D11:D97="PFH"))

this is my exact formula that will not work(it comes up as an error). i am
taking columns C and D from worksheet 1 and if two of the columns are the
same then i want it to count them.
thanks alot









"Bob Phillips" wrote:

=SUMPRODUCT(--(B2:B20="Memco"),--(C2:C20="PFH"))

--
---
HTH

Bob


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



"AAS" wrote in message
...
worksheet 1

John Doe Memco PFH
Jerry Jones PFH
Tom Tanner Memco
David Toms Memco PFH
Jeff Smith Memco

worksheet 2

quantity 2

I am trying to count how many employees are Memco and PFH both. I have
been
trying to use the countif formula but cannot figure out how to use two
criteria. The formula is being used on worksheet 2.









"Bob Phillips" wrote:

in your previous formula, replace rng=value by
(rng1=value1)*(rng2=value2).

Other than that give us some example data and your formula.

--
---
HTH

Bob


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



"AAS" wrote in message
...
I have a set range but now I would like to narrow that down by using
two
criteria. I used one criteria before but now I have two. Any advice
is
greatly appreciated. Thanks.








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
Countif with date range criteria luisi Excel Worksheet Functions 5 March 28th 08 05:19 PM
CountIf for a range with multiple criteria Marco Excel Discussion (Misc queries) 5 August 27th 07 01:10 PM
How do I put a date range in the criteria of a countif formula? hlpmelrn Excel Discussion (Misc queries) 3 November 23rd 06 03:12 AM
SUM(COUNTIF(range,NOT Criteria)) Santa-D Excel Worksheet Functions 3 January 31st 06 03:43 AM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM


All times are GMT +1. The time now is 07:07 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"