Solved

Populate cell based on values in two other cells

Posted on 2014-03-12
4
1,354 Views
Last Modified: 2014-03-13
Hello. I need to populate a cell based on values in two other cells. For example: In the attached file, in the first row of Sheet 1 I have a value filled in for Option 2 and for Level 3. I need cell M2 to be populated with the corresponding text for Option 2 Level 3 from Sheet 2. What would be the best way to do this? Any ideas how to start? Thanks
Book2-SAMPLE.xls
0
Comment
Question by:zerog
  • 2
  • 2
4 Comments
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 39924291
Hi,

pls try

=VLOOKUP(INDEX(B1:G1,1,MATCH(99999999,B2:G2),1),Sheet2!A1:E7,MATCH(99999999,I2:L2)+1,1)

Open in new window


Regards
Book2-SAMPLEv1.xls
0
 

Author Comment

by:zerog
ID: 39924354
Perfect. This works great. Is there any way I can force the text to wrap in cell M2 in case some of the text is more than a line. Tried setting the cells to Wrap text but it doesn't work
0
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39925658
Hi,

it works but the line height will staay as the maimum used

Regards
Book2-SAMPLEv2.xls
0
 

Author Comment

by:zerog
ID: 39925690
Thank you
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

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

863 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

26 Experts available now in Live!

Get 1:1 Help Now