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

Is there a for loop in excel?

+---+-----+
| A | Inc |
+---+-----+
| A | Exc |
+---+-----+
| B | Exc |
+---+-----+
| B | Exc |
+---+-----+

This is the table I have, I have created a column of unique values in the first column (A,B)

Now if the rows with A have even one Include I want the add a column next to the Unique value column that says include. If there are no Includes it should be exclude. So it should look like this –

+---+-----+
| A | Inc |
+---+-----+
| B | Exc |
+---+-----+

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

>Solution :

Use COUNTIFS()

=IF(COUNTIFS(A:A,E1,B:B,"Inc"),"Inc","Exc")

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