Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Lookup values from multiple columns

Posted on 2012-03-30
2
Medium Priority
?
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

618 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