Lookup and mach

G

Guest

I have 2 worksheets Data and Invent_Count.

In transit invent I have in A a list of all invertory codes and in row 1
order nr not shipped
Worksheet data is in database format with a column for Order_NR an a colmn
for Invent_Code

In Invent_Count!c2 I want to place a formula that would look in Data!A2:C500
match Invent_Count!A2 & Invent_Count!C1 and give me the quantity of a that
stock item on that order and 0 if not.
I am calculating remaining stock

Thank you
 
B

Bob Phillips

=INDEX(Data!C2:C500,MATCH(1,(Invent_Count!A2=Data!A2:A500)*(Invent_Count!C1=
Data!B2:B500),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

Briliant thanks

Bob Phillips said:
=INDEX(Data!C2:C500,MATCH(1,(Invent_Count!A2=Data!A2:A500)*(Invent_Count!C1=
Data!B2:B500),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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