looking at a cell before reffering to a table

S

Skills

Hi

I have cells in column "cost" that checks whats in column "item" an
checks in a table to find the cost: =VLOOKUP(Item,Q1:R12,2,FALSE), thi
works fine but I would like the cost column to look in the column "sold
first and if the letter N is in a cell then write 0 in the "cost" cell
also if the letter N is not in that cell I would like it to refer t
the table. Hope that made sense and somebody can help.

Thank
 
A

Aladin Akyurek

Y2:

=VLOOKUP(Item,$Q$1:$R$12,3,0)

X2:

=IF(ISNA(Y2),"",IF(Y2="N",0),VLOOKUP(Item,$Q$1:$R$12,2,0)))
 

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