Solved

Excel:  Copy a cell in a row after locating the column match from another cell

Posted on 2014-12-10
4
169 Views
Last Modified: 2014-12-11
I have 2 separate tables in a single excel spreadsheet tab.  I need to load a value into a row cell based on a value in another cell within the row.  The value needs to come from a second table within the spreadsheet tab.  Example:  say cell B10 is 123.  I need to fill B11 with the value that comes from a second table say C20=C30 through L20=L30.  Somewhere with in  C20-C30 contains 123. Once I find 123 within C20-C30 - say C23, I then need to take the value of D23 and load it into B11
0
Comment
Question by:DCCoolBreeze
  • 2
4 Comments
 
LVL 48

Expert Comment

by:Rgonzo1971
ID: 40493408
Hi,

pls send dummy example

Regards
0
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40493732
The VLookup function is what you want to use. In B11:
  = VLookup(B10, C20:L30, 2)
looks for value of B10 in C20:C30, and takes the second column's value, which is one of D20:D30.
0
 
LVL 1

Author Comment

by:DCCoolBreeze
ID: 40493733
So, I have two tables on the same spreadsheet tab.  i want to take the letter in each cell in table one, search table two for that letter, and then enter the value next to the letter in table one next to the letter.

      table 1      FIELD      VALUE
            F      6
            A      
            E      
            D      
            G      
            B      
                  
                  
                  
                  
                  
      TABLE 2            
            A      1
            B      2
            C      3
            D      4
            E      5
            F      6
            G      7
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 40494134
Forgot to mention that Table 2 needs to be sorted, and if there is no exact match, the next value is returned. Use
  = VLookup(B10, C20:L30, 2, false)
if you only want to get exact matches, and else an error.
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.

Join & Write a Comment

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;…
This collection of functions covers all the normal rounding methods of just about any numeric value.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 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

12 Experts available now in Live!

Get 1:1 Help Now