Friday, August 9, 2013

Google Spreadsheet Countif in Non Continuous Range

Question:

( by Chaim janowski )


Hi,

I'm a teacher trying to put together an attendance keeper. 

I am using an "A" to mark a student absent.
   
I'm trying to have a specific cell "X4" count the "A"s in a specific number of cells "B4,C4,E4,F4,I4,J4,M4,N4,P4,Q4,T4,U4".

The =countif code that I'm aware of seems to only allow me to count a range of cells that are in order but not jump around like I'm trying to do.

Thank you.
Windows/chrome browser

Solution:

Have a look at the following screenshot of my Spreadsheet:



I have the following formula in Cell X4:

=countif(query(B4:U4;"select B,C,E,F,I,J,M,N,P,Q,T,U");"A")


I hope the above solution will help you, and if you need more help then please do comment below on this blog itself, I will try to help you out.


I also take up private and confidential projects:
If this blog post was helpful to you, and if you think you want to help me too and make my this blog survive then please donate here: http://igoogledrive.blogspot.com/2012/09/donate.html 

Thanks,

No comments:

Post a Comment