VLOOKUP

G

Guest

lets say i have a range name ADDUP. it starts from A1 to B5.
example:

colA | colB

Row1 1 | $200
Row2 1 | $150
Row3 2 | $600
Row4 2 | $150
Row5 1 | $800

if i want to use VLOOKUP function to add up all the values in columnB which
have 1 in columnA. and i want to do the same for values in colomnB which have
2 in columnA. Is it possible? and How do i go about doing it? I think i know
how to use VLOOKUP but im not sure how to let it add up the values.
=VLOOKUP(G1,ADDUP,2,FALSE). if i use this formula, it picks up the first
value and displays it in the cell. but does not add up the values for all the
1s and 2s.

Let me know if its possible.
Thanks in Advance.
 
G

Guest

You should be able to do this with a SUMIF function,something like
=SUMIF(A1:A5, 1, B1:B5) and =SUMIF(A1:A5, 2, B1:B5) to total the values in
column B where the value in column A is 1 or 2 respectively.
 
G

Guest

thank you
--
help a friend help you


MarkN said:
You should be able to do this with a SUMIF function,something like
=SUMIF(A1:A5, 1, B1:B5) and =SUMIF(A1:A5, 2, B1:B5) to total the values in
column B where the value in column A is 1 or 2 respectively.
 

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

Similar Threads


Top