sumif???

G

Guest

If column A contains names of colors (A1=orange, A2=yellow, A3=orange, etc)
and column B contains numbers (B1=3, B2=7, B3=8, etc.), can I create a
formula to sum all numbers in column B whose corresponding color in column A
is "orange"? For example, A1 and A3 are "orange", so the formula delivers
"11", the sum of B1 (3) and B2 (8).

Thanks.
 
I

Ian

The Excel help on SUMIF explains exactly what you need to do and shows an
example. In your case you need =SUMIF(A1:A100,"orange",B1:B100). You may
need to amend the row range. It doesn't matter what cell you put the formula
in, as long as it isn't in one of the ranges in the formula.
 
G

Guest

Gee, I feel stupid. I didn't understand the difference between "range" and
"sum range" before. Now I do. Many thanks, Ian.
 
I

Ian

Glad to help. Thanks for the feedback.

--
Ian
--
Jeanette said:
Gee, I feel stupid. I didn't understand the difference between "range"
and
"sum range" before. Now I do. Many thanks, Ian.
 

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