How do I add all values in a given row (not colum)?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i am trying to search colum "A" for all values equal to something, say all
the cells that have '1000' as their data, and then add up all the cells in
the corresponding row, so if A34, A50, and A56 all have 1000 in them, then I
want to return the value of all the cells added up in the rows, say B34,50,56
: K34,50,56
 
Enter with Ctrl-Shift-Enter (an array formula)

=SUM(IF(A1:A100=1000,B1:K100))

Change range to suit
 
Or how about

=SUMPRODUCT(--($A$1:$A$56=1000)*($A$1:$A$56)+(--($A$1:$A$56=1000)*($B$1:$B$56)+(--($A$1:$A$56=1000)*($K$1:$K$56)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top