A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

countif and sum if if two condition are satisfied



 
 
Thread Tools Display Modes
  #1  
Old July 14th, 2008, 08:44 AM posted to microsoft.public.excel.worksheet.functions
zafar62
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  
Old July 14th, 2008, 08:54 AM posted to microsoft.public.excel.worksheet.functions
Jarek Kujawa[_2_]
external usenet poster
 
Posts: 775
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  
Old July 14th, 2008, 09:00 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_2_]
external usenet poster
 
Posts: 1,562
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  
Old July 15th, 2008, 06:22 AM posted to microsoft.public.excel.worksheet.functions
ryguy7272
external usenet poster
 
Posts: 1,593
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




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.