0

I have a table that looks like this:

enter image description here

In cell F2 I would like to have the sum of all values in column B where the value in the cell next to it (C column) is equal to "Niels".

How could I do this? (I'm a beginner with Excel)

4

You can do this with SUMIF():

=SUMIF(C:C,"Niels",B:B)

You can also use the data in E directly in the formula so you do not need to retype the formula for each, in E2 put just Niels

=SUMIF(C:C,E2,B:B)

Then you can copy down.

  • They would have to edit the E column to exactly match their lookup string. – HackSlash Jan 2 '18 at 17:58
  • @HackSlash Hence the in E2 put just Niels. – Scott Craner Jan 2 '18 at 18:05

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.