Solved

Need to add information from one spreadsheet to another using a common key field

Posted on 2011-09-27
6
188 Views
Last Modified: 2012-05-12
We have a MS spreadsheet table (Table 1) with 12 columns of information.  An important piece of information is located on another spreadsheet table (Table 2).  Both tables have a common field (Award Number).  The Award Amount information needs to be placed into Table 2.

I think that I should add a column to Table 1 with the same name as in table two.  I don't know how, but I believe that a command or procedure can be made to compare the two tables using the common field and then copy the Award Amount into Table 1 when a match of the Award number is found.  If necessary, Table 2 can be made to have only two columns (Award Number and Award Amount).

Any assistance that you can give will be appreciated.  
0
Comment
Question by:sherman6789
  • 4
  • 2
6 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 36713800
If you can make Table 2 into two columns with Award Number in the first column and Award Amount in the second then you can use a regular VLOOKUP to pull that information into Table 1

Assume that a specific Award Number is in J2 in table1 then you can use a VLOOKUP like this in K2

=VLOOKUP(J2,Table2,2,0)

You'll get an #N/A error if the J2 Award Number isn't found in the first column

regards, barry
0
 

Author Comment

by:sherman6789
ID: 36713815
Thanks "barryhoudini", I'll try this tonight and respond tomorrow.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 36713850
OK, Note: it doesn't have to be two columns - that's just the simplest form.

As long as the Award Number column is to the left of the Award Amount column you can use VLOOKUP. The lookup value is looked up in the first column of the range you specify and a value is returned from the column indicated by the "column index" - that's the 2 in the above. so your table2 could be 5 columns wide from col F to col J, if Award Number is column F and Award Amount is in J then you would be returning a value from column 5 so the formula would be like this

=VLOOKUP(J2,Table2,5,0)

Excel's help on VLOOKUP is quite short but also reasonably helpful....

regards, barry
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:sherman6789
ID: 36906656
Sorry for the delay.  I had to put this project on hold until Thur (Oct 6, 2011)  I will test and get back then.  Thanks for your assistance barryhoudini:.
0
 

Author Comment

by:sherman6789
ID: 36952122
The combining worked great.  Thanks.
0
 

Author Closing Comment

by:sherman6789
ID: 36952133
I really appreciated you assistance.  Thanks again.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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;…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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 …

867 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

15 Experts available now in Live!

Get 1:1 Help Now