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  

HELP! countif



 
 
Thread Tools Display Modes
  #1  
Old May 22nd, 2006, 11:33 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default HELP! countif


I'm trying to do a bit of a survey analysis.

Anyways in counting responses this is what i need.

I need to run the COUNTIF function for a particular column, but i only
want this function to run IF the column adjacent to it has a particular
value.

something on the lines of

=IF(Data!C6="Peach",COUNTIF(Data!E:E,"6"),"0")

though this doesn't work... any suggestions???


--
addicted
------------------------------------------------------------------------
addicted's Profile: http://www.excelforum.com/member.php...o&userid=34658
View this thread: http://www.excelforum.com/showthread...hreadid=544240

  #2  
Old May 22nd, 2006, 12:01 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default HELP! countif

Sounds like an array formula to me

=sum(IF(C6:C600="Peach",IF(E6:E600,"6",1,0)))

enter as ctrl shift enter - NOTE that you need to have an actual range
for this to work (hence my C6:C600 instead of just C or C6)

  #3  
Old May 22nd, 2006, 12:17 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default HELP! countif

I think you want

=SUMPRODUCT(--(C6:C600="Peach"),--(E6:E600=6))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"addicted" wrote in
message ...

I'm trying to do a bit of a survey analysis.

Anyways in counting responses this is what i need.

I need to run the COUNTIF function for a particular column, but i only
want this function to run IF the column adjacent to it has a particular
value.

something on the lines of

=IF(Data!C6="Peach",COUNTIF(Data!E:E,"6"),"0")

though this doesn't work... any suggestions???


--
addicted
------------------------------------------------------------------------
addicted's Profile:

http://www.excelforum.com/member.php...o&userid=34658
View this thread: http://www.excelforum.com/showthread...hreadid=544240



  #4  
Old May 22nd, 2006, 01:26 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default HELP! countif


Hello,

Thanks to the both of you. Couldn't have imagined the response would be
so quick and brilliant.

The SUMPRODUCT array function worked great...Thanks Bob, owe ya a beer
mate. Keep up the good work!

Cheers


--
addicted
------------------------------------------------------------------------
addicted's Profile: http://www.excelforum.com/member.php...o&userid=34658
View this thread: http://www.excelforum.com/showthread...hreadid=544240

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif Formula /Sort Bug??? orcfodder General Discussion 2 January 12th, 2006 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Worksheet Functions 4 September 15th, 2005 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx General Discussion 5 March 31st, 2005 06:21 PM
COUNTIF almost does it but... Stevej Worksheet Functions 2 August 27th, 2004 11:58 PM
Pb on Countif Paul Worksheet Functions 0 December 23rd, 2003 11:35 AM


All times are GMT +1. The time now is 12:02 PM.


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