Solved

Lookup values from multiple columns

Posted on 2012-03-30
2
260 Views
Last Modified: 2012-03-30
Hi,

I want to look up values in the blue boxes in the attached sheet.

Items are sold to three market types - under two different price settings. How to look up say for a specific item [sk1] so that both columns under a market type is shown.

Like look up (sk1) returns only prices for a specific market. I tried to create named ranges but how this could be achieved?
Invoice table will show the two price sets :( p1 and p2) for only those items that corresponds to a specific item and a specific market type.

Example:
invoice2      sk1      conventional market       $    45.00        $    50.00

What formula can be put in those two blue boxes to do this?
multiple-column-look-up.xlsx
0
Comment
Question by:Rayne
2 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 37789789
The exact formula required will depend on your worksheet layout. For the sample workbook, I used:
=VLOOKUP($A4,$F$5:$L$1000,MATCH($B4,$G$3:$L$3,0)+1,FALSE)      for cell C4. Returns the P1 price for a SKU in A4 and market in B4
=VLOOKUP($A4,$F$5:$L$1000,MATCH($B4,$G$3:$L$3,0)+2,FALSE)      for cell C4. Returns the P2 price for a SKU in A4 and market in B4. Note the +2 in formula.
multiple-column-look-upQ27656390.xlsx
0
 

Author Comment

by:Rayne
ID: 37789971
Awesome. Now, that was some trick. Thanks Byundt for your help. Greatly appreciate it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now