Need Function Help

  • Thread starter Thread starter INFOMGMTRSRCH
  • Start date Start date
I

INFOMGMTRSRCH

undefined
I am an Excel novice and I need a quick piece of advice.
Let's assume I have two columns of data, for example

0 A B
1 0 2
2 1 4
3 0 4
4 0 5
5 1 6

I need to know if an If then statement can be created that if A="1",
sum the corresponding values of B. In this example, the cell would
return the value 10 (=4+6). I don't know the proper syntax for
creating this statement, nor the proper functions to use.

Any help would be greatly appreciated.
 
Good evening Infomgmtrsch

No problem. The function you require is =SUMIF and using the example
you have used in your posting, the syntax goes thus:

=SUMIF(A1:A5,"1",B1:B5)

HTH

DominicB
 

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