LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default CONDITIONAL COUNTIF FUNTIONS PLEASE HELP!!!

I am trying to count a certain number of cells based on whether a condition
is satisfied. I want a formular rather like the sumproduct but countproduct
instead.

Please see example below.

I want to count for both companies COMP1 and COMP2 how many non zero cells
there are in the first table, but only when the corresponding cell in the 2nd
table has a "y" in that cell. at the moment I can do this using if functions
with a countif function in the middle. However I am doing this over a period
of 3 years so it makes my formular ridiculously long.

A B C
1 JAN FEB
2 COMP 1 1 2
3 COMP 2 1 0
4
5 JAN FEB
6 COMP 1 y
7 COMP 2 y y
8
9 count none zero with "y"
10 COMP 1 1 <-- =IF(B6="y",COUNTIF(B2,"<0"),0)+IF(C6="y",COUNTIF( C2,"<0"),0)
11 COMP 2 1 <-- =IF(B7="y",COUNTIF(B7,"<0"),0)+IF(C7="y",COUNTIF( C7,"<0"),0)

I want a way to do it for example = countproduct(b2:c2,(b6:c6="y")*1))

Can anyone help me?? is there another way to do this?

Laurence


 
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
Formula Funtions Garyp1961 Excel Worksheet Functions 9 May 11th 08 12:21 AM
Vlookup funtions Kel Excel Worksheet Functions 3 August 21st 06 09:44 PM
FUNTIONS Mike Excel Worksheet Functions 0 May 30th 06 01:16 PM
nested funtions (IF OR) HudsonHouse Excel Worksheet Functions 1 October 20th 05 11:33 PM
Nested Funtions StephanieH Excel Worksheet Functions 7 July 8th 05 01:33 PM


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