summing numbers based on 2nd column

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

Guest

I have a worksheet that has 2 columns A, B. there are numbers in each
column. What I want to do is sum only the numbers in column A that have a
number greater than 0. ie a1 has 10 and b1 has 1, a2 has 8, b2 has 0 a3 has
7 and b3 has 1. Now I should get 17 when I sum the A column because b2 is 0
so a2 wouldn't be counted. I'm using excel 2002 sp2.
 
Try this:

=SUMIF(B:B,">0",A:A)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
Thanks, that worked great. Just what I needed.

Ron Coderre said:
Try this:

=SUMIF(B:B,">0",A:A)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 

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