VLOOKUP and SUM

R

Rebecca

I am working with a spreadsheet where I need to lookup a text value in one
column and sum the numbers appearing in another column. Is there a way to
combine these two functions? I've figured out how to do the lookup, but not
how to sum the results. It appears that the lookup stops at the first match.
Any suggestions would be appreciated.

Thanks!
Rebecca
 
G

Gaurav

SUMPRODUCT may help you. Please post some more details like what are your
ranges etc.
 
T

T. Valko

Try this:

Sum column B where the corresponding cells in column A = "text".

=SUMIF(A1:A100,"text",B1:B100)

Better to use a cell to hold the "text" :

D1 = text

=SUMIF(A1:A100,D1,B1:B100)

Replace "text" with the actual text string you're looking for.
 
K

KIM W

You may be needing an Array Formula... that is deep water, but well worth
learning. In addition to Excel Help on Array Formulas, I recommend studing
it in the "Excel 2007 Bible" by John Walklenbach. (There are editions on
earlier Excel versins where Array Formulas exist, too.)

Kim W.
 
R

Rebecca

This worked perfectly. Thanks very much.

T. Valko said:
Try this:

Sum column B where the corresponding cells in column A = "text".

=SUMIF(A1:A100,"text",B1:B100)

Better to use a cell to hold the "text" :

D1 = text

=SUMIF(A1:A100,D1,B1:B100)

Replace "text" with the actual text string you're looking for.
 

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