#1   Report Post  
Posted to microsoft.public.excel.misc
Eqa Eqa is offline
external usenet poster
 
Posts: 52
Default Vlookup

In one workbook I have a list of product Nos. with corresponding sales
figures next it . The same product No. could be listed multiple times with
different sales values next to it. In a second workbook I have a list of
product Nos. some of which appear in book 1. What I would like to know is
what formula do I use to look at the Product items in book 2 and then look at
the at the list in book1 and add the sales figures together for the matching
product Nos. I hope this all clear. Thanks in anticipation.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Vlookup

Hi,

Put this in Book 2
A1-A30 Product No's
B1-B30 Sales
A1 is the product you are looking
=SUMPRODUCT(([Book1]Sheet1!$A$1:$A$30=A1)*([Book1]Sheet1!$B$1:$B$30))


Mike

"Eqa" wrote:

In one workbook I have a list of product Nos. with corresponding sales
figures next it . The same product No. could be listed multiple times with
different sales values next to it. In a second workbook I have a list of
product Nos. some of which appear in book 1. What I would like to know is
what formula do I use to look at the Product items in book 2 and then look at
the at the list in book1 and add the sales figures together for the matching
product Nos. I hope this all clear. Thanks in anticipation.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Vlookup

You can use SUMIF, like this:

=SUMIF(Sheet1!A:A,A2,Sheet1!B:B)

assuming that your product numbers and sales figures are in columns A
and B of Sheet1, and that your summary list of product numbers begins
in A2 of Sheet2 - put this formula in B2 and copy down.

Hope this helps.

Pete

On Apr 8, 7:56*am, Eqa wrote:
In one workbook I have a list of product Nos. with corresponding sales
figures next it . The same product No. could be listed multiple times with
different sales values next to it. In a second workbook I have a list of
product Nos. some of which appear in book 1. What I would like to know is
what formula do I use to look at the Product items in book 2 and then look at
the at the list in book1 and add the sales figures together for the matching
product Nos. I hope this all clear. Thanks in anticipation.


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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 02:42 AM.

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"