Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
fritzj8
 
Posts: n/a
Default Help with Formulas


I need help with creating a formula. I want to count the total number
of individuals who meet a certain criteria in one column and a certain
criteria in another column. For example: I want to find out the total
number of people who live in Germany and went on a specific trip. For
argument sake let's say column A is at lists only Y or N for yes and
no, and column B is a list of Countries such as Germany, America, etc.
I would like to figure out the total number of individuals who have a Y
in column A and the word Germany in column B. This is what I have done
so far and it works for counting only those with Germany in column B or
a Y in column A:

=COUNTIF('[Spreadsheet Name.xls]'!$B:$B,"Germany") or
=COUNTIF('[Spreadsheet Name.xls]'!$A:$A,"Y")

The first formula will give me the total number of individuals with the
word Germany in column B, and the second will give me a total number of
individuals with a Y in column A. How can I combine these two formulas
to come up with one that will only count those individuals who have both
the word Germany in column B and a Y in column A? I appreciate your
assistance with this matter. Please respond to

Thanks,
Fritz


--
fritzj8
------------------------------------------------------------------------
fritzj8's Profile:
http://www.excelforum.com/member.php...o&userid=27167
View this thread: http://www.excelforum.com/showthread...hreadid=466775

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


use this formula, where C2 holds the name of the country to count:

=SUMPRODUCT((A2:A100="Y")*(B2:B100=C2))

adjust the ranges as needed to match your data.

HTH

Bruce

NOTE: please don't multi-post


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=466775

  #3   Report Post  
Don Guillett
 
Posts: n/a
Default

triple posted. Pls post in ONE group only.

--
Don Guillett
SalesAid Software

"fritzj8" wrote in
message ...

I need help with creating a formula. I want to count the total number
of individuals who meet a certain criteria in one column and a certain
criteria in another column. For example: I want to find out the total
number of people who live in Germany and went on a specific trip. For
argument sake let's say column A is at lists only Y or N for yes and
no, and column B is a list of Countries such as Germany, America, etc.
I would like to figure out the total number of individuals who have a Y
in column A and the word Germany in column B. This is what I have done
so far and it works for counting only those with Germany in column B or
a Y in column A:

=COUNTIF('[Spreadsheet Name.xls]'!$B:$B,"Germany") or
=COUNTIF('[Spreadsheet Name.xls]'!$A:$A,"Y")

The first formula will give me the total number of individuals with the
word Germany in column B, and the second will give me a total number of
individuals with a Y in column A. How can I combine these two formulas
to come up with one that will only count those individuals who have both
the word Germany in column B and a Y in column A? I appreciate your
assistance with this matter. Please respond to


Thanks,
Fritz


--
fritzj8
------------------------------------------------------------------------
fritzj8's Profile:

http://www.excelforum.com/member.php...o&userid=27167
View this thread: http://www.excelforum.com/showthread...hreadid=466775



  #4   Report Post  
BenjieLop
 
Posts: n/a
Default


If I counted correctly, this was posted 5 times.


Don Guillett Wrote:
triple posted. Pls post in ONE group only.

--
Don Guillett
SalesAid Software

"fritzj8" wrote
in
message ...

I need help with creating a formula. I want to count the total

number
of individuals who meet a certain criteria in one column and a

certain
criteria in another column. For example: I want to find out the

total
number of people who live in Germany and went on a specific trip.

For
argument sake let's say column A is at lists only Y or N for yes and
no, and column B is a list of Countries such as Germany, America,

etc.
I would like to figure out the total number of individuals who have a

Y
in column A and the word Germany in column B. This is what I have

done
so far and it works for counting only those with Germany in column B

or
a Y in column A:

=COUNTIF('[Spreadsheet Name.xls]'!$B:$B,"Germany") or
=COUNTIF('[Spreadsheet Name.xls]'!$A:$A,"Y")

The first formula will give me the total number of individuals with

the
word Germany in column B, and the second will give me a total number

of
individuals with a Y in column A. How can I combine these two

formulas
to come up with one that will only count those individuals who have

both
the word Germany in column B and a Y in column A? I appreciate your
assistance with this matter. Please respond to


Thanks,
Fritz


--
fritzj8

------------------------------------------------------------------------
fritzj8's Profile:

http://www.excelforum.com/member.php...o&userid=27167
View this thread:

http://www.excelforum.com/showthread...hreadid=466775



--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=466775

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 Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Formulas Stan Excel Worksheet Functions 3 January 21st 05 02:58 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


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