Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting data from another spreadsheet based on values in 2 columns

Posted on 2013-10-24
4
Medium Priority
?
231 Views
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:

=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
Comment
Question by:Andreamary
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:NBVC
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

by:Andreamary
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

by:
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))

Open in new window


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

Author Closing Comment

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

783 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