Vlookup sum

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

Guest

I'm trying to create a spreadsheet with pretty advanced formulas. I need to
create a function that first looks up column 1, and then if column one is
equal to "belgium" or a certain other word, then I need the function to sum
the following column if it matches a different criteria. I thought vlookup
might help by seaching for the first criteria, and then a nested sumif
function to look up the second criteria and add it, but it didn't work. It
didn't give me any errors, but it didn't work correctly. Does anyone have
any ideas on what I can do to create this function? Sorry if this is vague,
I know what I need but i can't describe it very well. Thanks.
 
Hi
You can do this using a SUMPRODUCT formula, eg
=SUMPRODUCT((A2:A1000="Belgium")*(B2:B1000))
When using SUMPRODUCT, the ranges must be the same size and you cannot use
full columns
 
Charline,

Something along the lines of

=SUMPRODUCT((A1:A100="Belgium")*(B1:B100="Charline")*C1:C100)

or use a pivot table.

HTH,
Bernie
MS Excel MVP
 

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