Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Geoff
 
Posts: n/a
Default combined two countif functions

I want to have a table as such:

state population

CO 100
NE 200
CO 300

I want to count the number of times state is CO and Population is
200. In the example it should result in a count of 1.

How do i formulate this?

thanks.

  #2   Report Post  
Michael
 
Posts: n/a
Default

Hi Geoff
Try this:

=SUMPRODUCT((A1:A3="CO")*(B1:B3200))

HTH
Michael Mitchelson


"Geoff" wrote:

I want to have a table as such:

state population

CO 100
NE 200
CO 300

I want to count the number of times state is CO and Population is
200. In the example it should result in a count of 1.

How do i formulate this?

thanks.


  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(A2:a100="CO"),--(B2:B100200))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Geoff" wrote in message
ps.com...
I want to have a table as such:

state population

CO 100
NE 200
CO 300

I want to count the number of times state is CO and Population is
200. In the example it should result in a count of 1.

How do i formulate this?

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
Multiple Functions IF, AND, COUNTIF, MATCH Mike Excel Worksheet Functions 3 July 29th 05 08:03 PM
help please - complex countif, etc. functions Jennie Excel Worksheet Functions 1 June 17th 05 06:35 PM
COUNTIF functions danowynn Excel Worksheet Functions 4 May 4th 05 10:28 PM
Can you combined the SUMIF and SUBTOTAL functions in a formula? [email protected] Excel Worksheet Functions 1 April 22nd 05 04:05 AM
How do I combine COUNTIF and AND functions in Excel J Roney Excel Worksheet Functions 2 February 15th 05 08:41 PM


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