Thread: [Solved] LOOKUP and IF FUNCTION
View Single Post
 
Old 12-05-2013, 10:02 AM
BobBridges's Avatar
BobBridges BobBridges is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I think you've misunderstood what VLOOKUP does—either that or your function contains a simple typo. What you want is
Code:
=VLOOKUP($A2,InventoryOnHand!$A$2:$D$49,4,FALSE)
You're starting with the value in VendorInventory!$A2, you see, and looking that up in InventoryOnHand; so the first argument in the VLOOKUP call must be the value on this sheet that you want to look up on the other sheet.

And by the way, I think it'll be simpler and work just as well to do it this way:
Code:
=VLOOKUP($A2,InventoryOnHand!$A:$D,4,FALSE)
That way you don't have to update the formula on the first sheet whenever you add new inventory items to the second.
Reply With Quote