Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default countif and sum if if two condition are satisfied

I have the data as under
A B
S 2
S 3
F 4
F 0
M 5
M 6

I want to count no of cells in Column B which has correspoding F in Column A
and value more than 0, like here the result should be one. And can I make
total also by getting the result 4
Please help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default countif and sum if if two condition are satisfied

=SUM(IF((A1:A10="F")*(B1:B100),1,0)) to count the number of cells

=SUM(IF((A1:A10="F")*(B1:B100),B1:B10,0)) to show the sum of such
cells

formulas have to be array-entered = CTRL+SHIFT+ENTER
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default countif and sum if if two condition are satisfied


=SUMPRODUCT(--(A2:A200="F"),--(B2:B2000))

with SUMPRODUCT, you cannot use whole columns you must use an explicit
range, unless you have Excel 2007

--
__________________________________
HTH

Bob

"zafar62" wrote in message
...
I have the data as under
A B
S 2
S 3
F 4
F 0
M 5
M 6

I want to count no of cells in Column B which has correspoding F in Column
A
and value more than 0, like here the result should be one. And can I make
total also by getting the result 4
Please help



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default countif and sum if if two condition are satisfied

Take a look at this site...when you can devote some time to it:
http://www.xldynamic.com/source/xld....T.html#classic

Regards,
Ryan---


Regards,
Ryan----


--
RyGuy


"Bob Phillips" wrote:


=SUMPRODUCT(--(A2:A200="F"),--(B2:B2000))

with SUMPRODUCT, you cannot use whole columns you must use an explicit
range, unless you have Excel 2007

--
__________________________________
HTH

Bob

"zafar62" wrote in message
...
I have the data as under
A B
S 2
S 3
F 4
F 0
M 5
M 6

I want to count no of cells in Column B which has correspoding F in Column
A
and value more than 0, like here the result should be one. And can I make
total also by getting the result 4
Please help




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
Looping till condition is satisfied? Jo[_2_] Excel Worksheet Functions 3 October 4th 07 09:43 PM
COUNTIF - more than one condition Gary Excel Worksheet Functions 4 May 8th 07 08:46 PM
How to change the value of a cell when a condition is satisfied, but not otherwise? benzi_k_ahamed Excel Discussion (Misc queries) 0 January 11th 06 11:31 AM
Compound condition with COUNTIF Mike McLellan Excel Discussion (Misc queries) 1 November 29th 05 10:50 AM
countif condition problem Scott Excel Worksheet Functions 8 November 11th 05 08:59 AM


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