Getting data from another spreadsheet based on values in 2 columns

Posted on 2013-10-24
Last Modified: 2013-10-25
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:


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...

Question by:Andreamary
  • 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?

Author Comment

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

LVL 23

Accepted Solution

NBVC earned 500 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))

Open in new window

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

Author Closing Comment

ID: 39601445
Success...thanks so much!

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

705 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

19 Experts available now in Live!

Get 1:1 Help Now