Solved

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

Posted on 2014-12-10
4
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 52

Expert Comment

by:Rgonzo1971
ID: 40493408
Hi,

pls send dummy example

Regards
0
 
LVL 70

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 70

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

630 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