Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2014, 03:56 AM
epnhakon epnhakon is offline Countif with filter Windows 7 64bit Countif with filter Office 2013
Novice
Countif with filter
 
Join Date: Aug 2014
Posts: 3
epnhakon is on a distinguished road
Default Countif with filter

I have results from a survey that I would like to count to present in a chart. When I use



=COUNTIF(B2:B21;"3")

that works fine.

But if I want to use Filter on column A, the =COUNTIF Function displays even the outfiltered results. How can I count the displayed results only?

Here is it in more detail:



So for example I would like to see how many "Male" have answered "3".

Last edited by epnhakon; 08-29-2014 at 04:01 AM. Reason: inserted a image
Reply With Quote
  #2  
Old 08-29-2014, 08:53 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Countif with filter Windows 7 64bit Countif with filter Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Perhaps
Code:
=SUMPRODUCT(SUBTOTAL(103,OFFSET(A2,ROW(A2:A100)-ROW(A2),0)),(A2:A100=3)+0)
Be careful not to use double quotes ("3") which is a string
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 08-29-2014, 09:35 AM
epnhakon epnhakon is offline Countif with filter Windows 7 64bit Countif with filter Office 2013
Novice
Countif with filter
 
Join Date: Aug 2014
Posts: 3
epnhakon is on a distinguished road
Default

I don't get this one to work. I tried it as you put it and also with "B" instead of "A" since I'm trying to count the numbers in column B.

I always get the count 0
Reply With Quote
  #4  
Old 08-29-2014, 09:46 AM
epnhakon epnhakon is offline Countif with filter Windows 7 64bit Countif with filter Office 2013
Novice
Countif with filter
 
Join Date: Aug 2014
Posts: 3
epnhakon is on a distinguished road
Default

disregard last post. This works perfectly.

Thanks for a quick reply @pecoflyer
Reply With Quote
Reply

Tags
countif, filter, solved



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using =countif formula with drop down box. wchristner Excel 0 02-19-2014 12:44 PM
Countif with filter COUNTIF Formula teza2k06 Excel 3 02-13-2014 12:37 PM
Countif hockeytown Excel 3 01-05-2013 08:06 AM
Countif with filter Countif issue Katy I Excel 2 07-11-2012 06:30 AM
Countif with filter Countif with 2 criteria ibrahimaa Excel 3 05-23-2011 11:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft