Comparing One Range and Adding Another

S

statusquo

Hi,

For one of my sheets, I need to sum all the values in A1:A10 for whic
the corresponding value in B1:B10 is less than 30. For example

A B
2 40
5 20
10 50
20 10

Would equal 25 (A2+A4 because B2 and B4 are both less than 30, but B
and B3 are not).

Thanks
 
S

ScottO

Take a look at the SUMIF function.
Rgds,
ScottO

"statusquo" <[email protected]>
wrote in message
|
| Hi,
|
| For one of my sheets, I need to sum all the values in A1:A10 for
which
| the corresponding value in B1:B10 is less than 30. For example
|
| A B
| 2 40
| 5 20
| 10 50
| 20 10
|
| Would equal 25 (A2+A4 because B2 and B4 are both less than 30, but
B1
| and B3 are not).
|
| Thanks!
|
|
| --
| statusquo
| -------------------------------------------------------------------
-----
| statusquo's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=29501
| View this thread:
http://www.excelforum.com/showthread.php?threadid=492058
|
 

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

Top