Solved

Need help with a complicated lookup

Posted on 2014-01-21
10
187 Views
Last Modified: 2014-01-30
I have a xls workbook with a lot of tabs

the two key tabs are my "all deals" and "mapping" tabs

In "all deals"
I am trying to get column K to be equal to column C of mapping when:
all deals C = mapping A
AND
all deals J = mapping B

I need this to be a real time lookup so if anything changes it happens in all deals

Also all deals J is a lookup field as well
=IF(OR(LEFT(B2,3)="CS-",LEFT(B2,4)="CS -"),"Federal CS",LOOKUP(9.9999E+307,SEARCH({"Civilian","CONSULT","Defense","Navy","Healthcare","Sled"},I2),{"Civilian","USPS Intel","Defense/Fedsec","Navy/Marine Corp","Healthcare","S&L"}))
0
Comment
Question by:Matt Pinkston
[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
  • 5
  • 4
10 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39797249
is column C of Mapping numeric or text?
0
 

Expert Comment

by:aer78
ID: 39797251
IF you put this in K3 of 'all deals,' does it work?

=IF(AND(C3=mapping!A3,J3=mapping!B3),mapping!C3,"")
0
 

Author Comment

by:Matt Pinkston
ID: 39797293
column C of mapping is a text field
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

Author Comment

by:Matt Pinkston
ID: 39797305
AER78 no does not work
 
In "all deals"
I am trying to get column K to be equal to column C of mapping when:
all deals C = mapping A
AND
all deals J = mapping B
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39797371
Try something like this:

=INDEX(Mapping!$C$2:$C$100,MATCH(1,INDEX((Mapping!$A$2:$A$100=A2)*(Mapping!$B$2:$B$100=B2),0),0))

adjust ranges to suit...
0
 

Author Comment

by:Matt Pinkston
ID: 39797456
NBVC sorry the formula only returns #/NA
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39797474
Is there an exact match?  Check for extra spaces in the cells that you think should return a match.
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39797482
Also, I assume you adjusted the references?

Perhaps:


=INDEX(Mapping!$C$2:$C$100,MATCH(1,INDEX((Mapping!$A$2:$A$100=C2)*(Mapping!$B$2:$B$100=J2),0),0))

according to your original query.
0
 

Author Comment

by:Matt Pinkston
ID: 39797532
sample file
sample-for-EE.xlsx
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39797689
I am not sure what you are showing.  It seems that you do have results in several cells.  The #N/A cells mean there is no match... and you've added the IFERROR() to capture those are return a blank instead.

Can you point to one that you know should show a match?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
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.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

734 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