Solved

Lookup From one tab to another

Posted on 2014-03-26
5
90 Views
Last Modified: 2014-04-11
On a worksheet (sheet 1) how do I make column C = column A of sheet2 when sheet1 column B = sheet2 column B
0
Comment
Question by:Matt Pinkston
  • 2
  • 2
5 Comments
 
LVL 39

Expert Comment

by:nutsch
ID: 39957671
in sheet1!B2, use

=index(Sheet2!$A$1:$A$1000,match($B2,Sheet2!$B$1:$B$1000,0))

You're returning the value of Sheet2!$A$1:$A$1000 found at the position where Sheet2!$B$1:$B$1000 matches Sheet1!B2.

Thomas
0
 
LVL 8

Expert Comment

by:Camy
ID: 39957677
or by individual cell copied down the column as required;

=IF(B1=Sheet2!B1,Sheet2!A1,"")
0
 

Author Comment

by:Matt Pinkston
ID: 39957703
How do you get the NA to go away?
0
 
LVL 39

Accepted Solution

by:
nutsch earned 500 total points
ID: 39957723
You can use iferror

=iferror(index(Sheet2!$A$1:$A$1000,match($B2,Sheet2!$B$1:$B$1000,0)),"")

Thomas
0
 

Author Closing Comment

by:Matt Pinkston
ID: 39995456
Thanks
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

803 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