Solved

V lookup

Posted on 2011-09-08
6
269 Views
Last Modified: 2012-05-12
I use Excel 2007. I have a spreadsheet called “InvoiceDetail Subtable_TEST” with about 28,000.  Column C field is called “StudyID” and is currently blank.  I have another spreadsheet called “Invoice Table Update_Test” which has a column E field called “Study”. This spreadsheet has another field column A called “InvoiceID” which is a unique field with no duplicates. This same field exists in the “InvoiceDetail Subtable_TEST” spreadsheet in column B also called “InvoiceID”. In this spreadsheet, they are duplicated depending on their “StudyID” which is currently blank.
For example for “InvoiceID” 10550 the “StudyID” that should go in the blank space in the “InvoiceDetail Subtable_TEST” spreadsheet should be “SR05” based on the corresponding “Study” in the “Invoice Table Update_Test” spreadsheet. How can I accomplish this goal for about 28000 records in the “InvoiceDetail Subtable_TEST” spreadsheet matching them with the “Invoice Table Update_Test” spreadsheet using a V lookup or a formula. Attached are the 2 spreadsheets. Thanks in advance

InvoiceDetail-Subtable-TEST.xlsx
Invoices-Table-Update-TEST.xlsx
0
Comment
Question by:Chrisjack001
  • 3
  • 2
6 Comments
 
LVL 33

Accepted Solution

by:
Rob Henson earned 250 total points
ID: 36502935
The formula you need is:

=VLOOKUP($B2,'[Invoices-Table-Update-TEST.xlsx]Sheet1'!$A:$E,5,FALSE)

This assumes the source file is open otherwise it would require the path as well.

Thanks
Rob H

0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 36502942
Sorry, should have said this is the formula for entry in C2 of the InvoiceDetail file and then copied down the rest of that column as far as required.

Thanks
Rob H
0
 
LVL 1

Assisted Solution

by:dubaday
dubaday earned 250 total points
ID: 36502990
List Populated.

Is this what you want, or did you want the formula? InvoiceDetail-Subtable-TEST.xlsx
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:Chrisjack001
ID: 36503328
Hi Rob its not working. I have both originals on my desktop. Could it be because the file is large. 28000. Could you please run your formula on your end and send it back to me. Thanks
0
 

Author Closing Comment

by:Chrisjack001
ID: 36503499
Thanks guys
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 36504361
Is it now working or do you still need assistance?

Only problem with doing it at my end is that the file references might change when downloaded and re-uploaded so you will have to change the formula anyway.

What was happening? Its not working is a bit of broad statement.

Thanks
Rob H
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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;…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

808 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