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

count all cell-content in Excel 2019 with condition

Following up on my question, I am looking for help to use Excel 2019

  1. to count a number of cells that have content on one side (<>"") and after TRIM() should still contain content.

enter image description here

  1. This formula is to be extended by a condition (Boolean value in column A => TRUE).

enter image description here

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

Thank you for your assistance.

>Solution :

The result can only be TRUE (=1) or FALSE (=0). The multiplication 1 is necessary so that the result TRUE or FALSE is also correctly recognized as 0 or 1 in the matrix.

Formula used in cell B13.

  1. =SUMPRODUCT(1*(TRIM(B2:B11)<>""))

  2. =SUMPRODUCT(1*(A2:A11),1*(TRIM(B2:B11)<>""))

Try the formulas and report back if it works for you.

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