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

How can I use custom formula among unique ones in google sheets?

NAME POINT A
JOHN 98
JOHN 0
HARRY 115
HARRY 75

Group the unique ones in the name column. If one of these values ​​has a zero, write a zero. If it is not zero, I want to sum the values, how can I do it?

I want to get the output as the result of the above table like this

NAME POINT A
JOHN 0
HARRY 190

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 :

You may try:

=let(Σ,unique(tocol(A2:A,1)),
       {Σ,index(if(countifs(A:A,Σ,B:B,0)>0,0,sumif(A:A,Σ,B:B)))})

enter image description here

formula (semicolon convention)

=let(Σ;unique(tocol(A2:A;1));
       {Σ\index(if(countifs(A:A;Σ;B:B;0)>0;0;sumif(A:A;Σ;B:B)))})
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