Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
m fleming
 
Posts: n/a
Default sumif, countif, sumproduct?????

Hello,

I have two columns: Col C, yes, yes, no, yes, yes and Col D, yes, no, yes,
yes, Yes. I want to count on col D if it says yes and the coresonding cell
in Col C says yes. Thus I would like a formula to return a count of 3 for
this example.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nevi
 
Posts: n/a
Default sumif, countif, sumproduct?????


{=SUM(IF((C1:C100="yes"),IF(D1:D100="yes",1,0)))}

You would obviously substitute the C1:C100 and D1:D100 with the range
you need.

This is not case sensative


--
nevi
------------------------------------------------------------------------
nevi's Profile: http://www.excelforum.com/member.php...o&userid=33238
View this thread: http://www.excelforum.com/showthread...hreadid=552861

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default sumif, countif, sumproduct?????

You could leave out the IF statements (either way works, but with more
complex formulae you could have problems w/the 7 nested function limit using
IF statements).

{=SUM((F4:F7="yes")*(G4:G7="yes"))}

or
=SUMPRODUCT(--(F4:F7="yes"), --(G4:G7="yes"))


"nevi" wrote:


{=SUM(IF((C1:C100="yes"),IF(D1:D100="yes",1,0)))}

You would obviously substitute the C1:C100 and D1:D100 with the range
you need.

This is not case sensative


--
nevi
------------------------------------------------------------------------
nevi's Profile: http://www.excelforum.com/member.php...o&userid=33238
View this thread: http://www.excelforum.com/showthread...hreadid=552861


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
Forget SUMIF, COUNTIF and VLOOKUP Pierre Leclerc Excel Worksheet Functions 16 April 27th 23 11:51 AM
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Sumproduct, If, Sumif, Countif, Match?? Herman56 Excel Discussion (Misc queries) 0 March 30th 06 01:40 PM
countif, sumif, sumproduct - I dont know which to use Jim Excel Worksheet Functions 3 January 4th 06 01:51 PM
Which formula to use? countif, sumif, sumproduct zubee Excel Discussion (Misc queries) 3 September 2nd 05 08:16 PM


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