|  

» Retrieving a Price Value By Looking at Two Difference Data Tables

Problem:

Listed in range1 (A4:B6) and range2 (D4:E6) are clothing items and their prices.
Cell B9 contains the name of an item from one of the ranges.
We would like to perform a lookup on both ranges, find the relevant item, and return the matching price.

Solution:
Use the ISNA and VLOOKUP functions as shown in the following formula:
=IF(ISNA(VLOOKUP(B9,A4:B6,2,FALSE)),VLOOKUP(B9,D4:E6,2,FALSE),VLOOKUP(B9,A4:B6,2,FALSE))


Range1___________________Range2

Item____Price____________Item______Price
Shoes___$80______________Jeans_____$70
Skirt___$30______________T-Shirt___$10
Socks___$5_______________Sneakers__$100

Item to look____Jeans
Price___________$70
Screenshot // Retrieving a Price Value By Looking at Two Difference Data Tables
Retrieving a Price Value By Looking at Two Difference Data Tables


Rate This Tip
12 34 5
Rating: 3.07     Views: 21050
intelligent lookup
sanjay k
very helpful solution.
given good direction to my thinking as i'm a beginner & many things are new found to me.
thanks
Click here to post comment
For Registered Users
Name
Comment Title
Comments