vlookup if statement returning a "false" answer.

G

Guest

I am vlooking up costs to enter into my spreadsheet. In column I is my
current cost. In column J is my last cost. If we are out of inventory, our
computer gives us a 0 cost in current. When this happens I want the last
cost to be reported in it's place. My formula will give me the last cost
correctly, but it returns a "false" answer instead of the current cost.
Could you please correct my formula.

=IF(VLOOKUP(D2,'NEW DATA'!$A$11:$J$5500,9,0)=0,(VLOOKUP(D2,'NEW
DATA'!$A$11:$J$5500,10,0)))


thanks in advance,

inthestands
 
J

JE McGimpsey

One way:

=IF(VLOOKUP(D2,'NEW DATA'!$A$11:$J$5500,9,0)=0, VLOOKUP(D2,'NEW
DATA'!$A$11:$J$5500,10,0), VLOOKUP(D2,'NEW DATA'!$A$11:$J$5500,9,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