#1   Report Post  
charline
 
Posts: n/a
Default Vlookup sum

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.
  #2   Report Post  
 
Posts: n/a
Default

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

--
Andy.


"charline" wrote in message
...
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.



  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

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


"charline" wrote in message
...
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.



  #4   Report Post  
Michael
 
Posts: n/a
Default

Hi. charline. Try this site. I Think SUMPRODUCT will do what you need.
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
Sincerely, Michael Colvin


"charline" wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 05:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"