excel - How do I do a sum of contents in an adjacent cell equal a set value -


what formula use sum of contents of range of cells, provided contents of adjacent cell equal cell.

the example give is, if have set of invoices quote purchase order, want see sum of invoices given purchase order, have included link excel spreadsheet have tried 2 different formulas can't seem grips need do. formulas in column j.

https://www.dropbox.com/s/xw9aun1cblro9ix/test.xlsx?dl=0

you'd better lock references use absolute column references this:
put formula in j , copy down:

=sumif($c$2:$c$4,$h2,$b$2:$b$4) 


add $ sign column refs.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -