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 to sum all the numbers under the same name? (Google Sheets)

I want to be able to create a cell that can add numbers that are found below a specific text.

In the image below there is an image with the basic draft for the idea, however the idea is not to add manually selected cells, as if I add a lot of new cells I would have to manually add them to the addition (=H12+H14+H16).
By making it so it adds all the things below a specific line of text, even when I add more of this cells, the addition will be made automatically without the need of adding the cells individually to the addition.

Of course if this type of ‘cell detection’ is possible this could make for a lot of more complex equations that usually need manual input to be done automatically as soon as it is added.

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

I imagine the code looking something like this:SUMiIF cell untop = "sales"

enter image description here

>Solution :

Try the following

=SUMIF(A2:A,"="&"sales", OFFSET(A2:A,1,0))

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