Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Getting data from another spreadsheet based on values in 2 columns

Posted on 2013-10-24
Medium Priority
227 Views
I am currently using this formula below to find the "last match" in the Cartography_12DEC2013_Oct21_Test.xlsm spreadsheet and populate Column N in the Book Production spreadsheet:

=IFERROR(LOOKUP(2,1/('[Cartography_12DEC2013_Oct21_Test.xlsm]Cartography'!\$H\$2:\$H\$675=M2),'[Cartography_12DEC2013_Oct21_Test.xlsm]Cartography'!\$I\$2:\$I\$675),"")

I am hoping to be able to modify this formula as follows:
1. Lookup \$H\$2:\$H\$675  on Cartography spreadsheet to find match(es) for value in column “M” in Book Production spreadsheet.
2. Then within the result from step 1, look up most recent initials/date stamp ( format is "RS 13 Oct 13") in column \$AW\$2:\$AW\$675 in Cartography spreadsheet.
3. From the row identified by Step 2, insert the value from Cartography \$H\$2:\$H\$675 column into column "N" in the Book Production spreadsheet.

I hope I've been able to express this clearly enough...don't hesitate to let me know if you have any questions...

Thanks!
Andrea
0
Question by:Andreamary
[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
• 2
• 2

LVL 23

Expert Comment

ID: 39596921
The details are a little confusing.  Can you explain what the difference would be from the formula you already have (and just changing the \$I\$2:\$I\$675 to \$AW\$2:\$AW\$675?
0

Author Comment

ID: 39597364
Sorry about that. I've attached a sample to better illustrate what I'm looking for.

Thanks,
Andrea
EE-Andreamary-Oct24.xlsm
0

LVL 23

Accepted Solution

NBVC earned 2000 total points
ID: 39597436
Try this formula:

``````=INDEX('Cartography Results'!\$F\$2:\$F\$15,MATCH(1,('Cartography Results'!\$E\$2:\$E\$15=A2)*(IFERROR(MID('Cartography Results'!\$G\$2:\$G\$15,4,255)+0,0)=MAX(IF('Cartography Results'!\$E\$2:\$E\$15=A2,IFERROR(MID('Cartography Results'!\$G\$2:\$G\$15,4,255)+0,0)))),0))
``````

confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down.
0

Author Closing Comment

ID: 39601445
Success...thanks so much!
0

## Featured Post

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
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 …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
###### Suggested Courses
Course of the Month11 days, 15 hours left to enroll