How to do look up with restrictions

J

JackR

I am trying to create a lookup on another workbook, I want it to look up
items under certain categories. I currenlty have the following
A b c
Carrots Produce $1.00
Wrap Paper $.15

Etc.

Colum A is the item I want to look up, but I only want it to show items
under one category i.e. Paper.

Is this possible, if so anyone have any ideas or a formula that would work?
Any help would be apprecited.


Thanks,
 
B

Bernard Liengme

Since column C is numeric, SUMPRODUCT will work
=SUMPRODUCT(--(A1:A6="Carrots"),--(B1:B6="Paper"),C1:C6)
Or, for another sheet
=SUMPRODUCT(--(Sheet2!A1:A6="Carrots"),--(Sheet2!B1:B6="Paper"),Sheet2!C1:C6)
I am assuming there is only on Carrots/Paper record in the table
best wishes
 
J

JackR

I dont think I got my point across correctly, I have sevral categories,
paper, produce, poultry, frozen etc. and accordingly items in another colums,
prices in another column, what I want is a vlookup, that will only show say
products under paper category, and then be able to give me the price for the
given item in the paper category.

Does this make sense. Aince I have to have all my items in one sheet, with
each item having a different category.
 
G

Gary''s Student

There is an Excel feature called auto-filter. Data > Filter > Autofilter

You can separately filter any of the columns. For example, if you select
Produce, then only the "Produce" rows will appear and all the "Produce" rows
will appear
 

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

Top