#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 493
Default Countif (maybe?)

In Col A i need formula to count how many HMOs in Col B have EPO in Col C
Col A Col B Col C
1 HMO EPO
HMO UFO
PPO ADP
CEO EOP
HOM TLC
PPO EPO



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default Countif (maybe?)

on cell A1
=SUM(($P$1:$P$1000=P1)*($Q$1:$Q$1000=Q1))
hit ctrl-shft-enter,

after it will look like this
{=SUM(($P$1:$P$1000=P1)*($Q$1:$Q$1000=Q1))}

u can copy paste this cell
downwards for all other criteria on same row.

looks awkward for a count, maybe?

"Alex" wrote:

In Col A i need formula to count how many HMOs in Col B have EPO in Col C
Col A Col B Col C
1 HMO EPO
HMO UFO
PPO ADP
CEO EOP
HOM TLC
PPO EPO



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Countif (maybe?)

=SUMPRODUCT(--(B1:B100="HMO"),--(C1:C100="EPO"))
Commit with a simple ENTER (it is not an array formula)
You cannot use whole columns (B:B)
For more info see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Alex" wrote in message
...
In Col A i need formula to count how many HMOs in Col B have EPO in Col C
Col A Col B Col C
1 HMO EPO
HMO UFO
PPO ADP
CEO EOP
HOM TLC
PPO EPO





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default Countif (maybe?)

opsss, a typo..my mistake

on cell A1
=SUM(($b$1:$b$1000=b1)*($c$1:$c$1000=Q1))
hit ctrl-shft-enter,

after it will look like this
{=SUM(($b$1:$b$1000=b1)*($c$1:$c$1000=c1))}

u can copy paste this cell
downwards for all other adjacent criteria on same row.

looks awkward for a count, maybe?



"Alex" wrote:

In Col A i need formula to count how many HMOs in Col B have EPO in Col C
Col A Col B Col C
1 HMO EPO
HMO UFO
PPO ADP
CEO EOP
HOM TLC
PPO EPO



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 493
Default Countif (maybe?)

I change the cell ranges to match my col.s and it looked like this
{=SUM(($B$3:$B$8=HMO)*($C$3:$C$8=EPO))}

It gave me a #NAME? error... Any idea why?

"driller" wrote:

on cell A1
=SUM(($P$1:$P$1000=P1)*($Q$1:$Q$1000=Q1))
hit ctrl-shft-enter,

after it will look like this
{=SUM(($P$1:$P$1000=P1)*($Q$1:$Q$1000=Q1))}

u can copy paste this cell
downwards for all other criteria on same row.

looks awkward for a count, maybe?

"Alex" wrote:

In Col A i need formula to count how many HMOs in Col B have EPO in Col C
Col A Col B Col C
1 HMO EPO
HMO UFO
PPO ADP
CEO EOP
HOM TLC
PPO EPO





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 493
Default Countif (maybe?)

Worked great.. Thanks

"Bernard Liengme" wrote:

=SUMPRODUCT(--(B1:B100="HMO"),--(C1:C100="EPO"))
Commit with a simple ENTER (it is not an array formula)
You cannot use whole columns (B:B)
For more info see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Alex" wrote in message
...
In Col A i need formula to count how many HMOs in Col B have EPO in Col C
Col A Col B Col C
1 HMO EPO
HMO UFO
PPO ADP
CEO EOP
HOM TLC
PPO EPO






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default Countif (maybe?)

this formula works bothways with cntrl-shft-enter

=SUM(($B$3:$B$8=cell ref1)*($C$3:$C$8=cell ref2))
this is a productive formula where u can place the text you like on any cell
refs.

=SUM(($B$3:$B$8="HMO")*($C$3:$C$8="EPO"))
this is a specific formula - a one time use.


"Alex" wrote:

I change the cell ranges to match my col.s and it looked like this
{=SUM(($B$3:$B$8=HMO)*($C$3:$C$8=EPO))}

It gave me a #NAME? error... Any idea why?

"driller" wrote:

on cell A1
=SUM(($P$1:$P$1000=P1)*($Q$1:$Q$1000=Q1))
hit ctrl-shft-enter,

after it will look like this
{=SUM(($P$1:$P$1000=P1)*($Q$1:$Q$1000=Q1))}

u can copy paste this cell
downwards for all other criteria on same row.

looks awkward for a count, maybe?

"Alex" wrote:

In Col A i need formula to count how many HMOs in Col B have EPO in Col C
Col A Col B Col C
1 HMO EPO
HMO UFO
PPO ADP
CEO EOP
HOM TLC
PPO EPO



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
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


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