Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Countif using Indirect

I’m trying to use Countif using indirect function.

here is the trix

I’ve cells which has direct referring like Alphabet & Major. I’m trying to get count which are not Alphabet & Major and get the value in "other"

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

I’m using

=if(B$1="","",COUNTIF(INDIRECT(B$1&"!$A:$A"),$A4))

to get the value of others. Not sure I’m doing right. Any inputs on this.

Desired Output:

enter image description here

>Solution :

You can use the following formula utilizing COUNTIFS instead and pull to the right

=COUNTIFS(INDIRECT(B$1&"!$A:$A"),"<>"&$A2, 
          INDIRECT(B$1&"!$A:$A"),"<>"&$A3,
          INDIRECT(B$1&"!$A:$A"),"<>")

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading