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

In a 2 column grid, match multiple values from the first column, and add the associated values for each from the second column

Consider this set:

A B
YES 1
NO 3
NO 3
NO 2
NO 5
YES 2
YES 1

I would like to create a formula that will choose all the values for "YES" from column 1, and for each match, add the values from column 2 (4).

I’ve attempted this using =SUM(VLOOKUP("YES",A1:B7, 2, FALSE) But this only returns the number of the first value found.

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

Any ideas how I can do this?

>Solution :

Use SUMIFS:

=SUMIFS(B:B,A:A,"YES")

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