#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Help with lookup

I need help with lookup.

Sheet 1 list with 3 columns: A= Product Category B= Product Codes C= Quantity
Sheet 2 list with 2 columns: A= Product Category B= Fee

I want to have on sheet 1 Column D a calculation of quantity X fee (for that
Product Category)
This is what I have in D2 =IF(A2=Sheet2!$A:$A,C2*Sheet2!$B:$B)
It works for some of the rows but most of them I get FALSE.

I think I need to do a VLOOKUP (or something else)but I don't know how.
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Help with lookup

Try:
=SUMIF(Sheet1!$A$2:$A$1000,A2,Sheet1!$C$2:$C$1000) *B2

This will sum up the entire quantity for a given product category in A2
(assuming you have multiple product category listings on sheet1) and then
multiply by the product category fee in B2.
--
** John C **

"fruitchunk" wrote:

I need help with lookup.

Sheet 1 list with 3 columns: A= Product Category B= Product Codes C= Quantity
Sheet 2 list with 2 columns: A= Product Category B= Fee

I want to have on sheet 1 Column D a calculation of quantity X fee (for that
Product Category)
This is what I have in D2 =IF(A2=Sheet2!$A:$A,C2*Sheet2!$B:$B)
It works for some of the rows but most of them I get FALSE.

I think I need to do a VLOOKUP (or something else)but I don't know how.
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Help with lookup

Assuming first Product Cat on Sheet1 is in A2
In D2 enter =C2*VLOOKUP(A2,Sheet2!A:B,2,FALSE)
This part =VLOOKUP(A2,Sheet2!A:B,2,FALSE) looks up the fee on sheet2
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"fruitchunk" wrote in message
...
I need help with lookup.

Sheet 1 list with 3 columns: A= Product Category B= Product Codes C=
Quantity
Sheet 2 list with 2 columns: A= Product Category B= Fee

I want to have on sheet 1 Column D a calculation of quantity X fee (for
that
Product Category)
This is what I have in D2 =IF(A2=Sheet2!$A:$A,C2*Sheet2!$B:$B)
It works for some of the rows but most of them I get FALSE.

I think I need to do a VLOOKUP (or something else)but I don't know how.
Thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Help with lookup

This doesn't work for me. I get #VALUE.
The formulaI got from Bernard Liengme works fine.

Thanks anyway

"John C" wrote:

Try:
=SUMIF(Sheet1!$A$2:$A$1000,A2,Sheet1!$C$2:$C$1000) *B2

This will sum up the entire quantity for a given product category in A2
(assuming you have multiple product category listings on sheet1) and then
multiply by the product category fee in B2.
--
** John C **

"fruitchunk" wrote:

I need help with lookup.

Sheet 1 list with 3 columns: A= Product Category B= Product Codes C= Quantity
Sheet 2 list with 2 columns: A= Product Category B= Fee

I want to have on sheet 1 Column D a calculation of quantity X fee (for that
Product Category)
This is what I have in D2 =IF(A2=Sheet2!$A:$A,C2*Sheet2!$B:$B)
It works for some of the rows but most of them I get FALSE.

I think I need to do a VLOOKUP (or something else)but I don't know how.
Thanks


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Help with lookup

The formula worked fine for me using the criteria you gave. It would be
interesting to find out where the error occurs using formula auditing.
--
** John C **


"fruitchunk" wrote:

This doesn't work for me. I get #VALUE.
The formulaI got from Bernard Liengme works fine.

Thanks anyway

"John C" wrote:

Try:
=SUMIF(Sheet1!$A$2:$A$1000,A2,Sheet1!$C$2:$C$1000) *B2

This will sum up the entire quantity for a given product category in A2
(assuming you have multiple product category listings on sheet1) and then
multiply by the product category fee in B2.
--
** John C **

"fruitchunk" wrote:

I need help with lookup.

Sheet 1 list with 3 columns: A= Product Category B= Product Codes C= Quantity
Sheet 2 list with 2 columns: A= Product Category B= Fee

I want to have on sheet 1 Column D a calculation of quantity X fee (for that
Product Category)
This is what I have in D2 =IF(A2=Sheet2!$A:$A,C2*Sheet2!$B:$B)
It works for some of the rows but most of them I get FALSE.

I think I need to do a VLOOKUP (or something else)but I don't know how.
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
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 01:41 PM.

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

About Us

"It's about Microsoft Excel"