» Retrieving the Price for a Specified Item and a Specified Brand
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
Retrieving the matching price of the item shown in cell A2, for the specific brand entered in cell B2.
Following are the prices for each possible combination:
Item,Brand,Price
Jeans, Diesel, $85
Jeans, Levis, $80
Jeans, Lee, $70
T-Shirt, Sacks, $7
T-Shirt, Gap, $5
T-Shirt, Old Navy, $3
Solution:
Use the IF and LOOKUP functions as shown in the following formula:
=IF(A2="Jeans",LOOKUP(B2,{"Diesel","Lee","Levis";85,70,80}),IF(A2="T-Shirt",LOOKUP(B2,{"Gap","Old Navy","Sacks"},{5,3,7})))
Book Store:
Recommended Books:
- Windows XP Annoyances
- Accounting the Easy Way
- The McGraw-Hill 36-Hour Course in Finance for Nonfinancial Managers
- Millionaire Real Estate Mentor : The Secrets of Financial Freedom through Real Estate Investing
- Absolute Beginner's Guide to Microsoft Office Excel 2003
- Microsoft Outlook Version 2002 Step by Step (With CD-ROM)
No comments have been submitted.


