Recommendations on a formula or other

datadummy

Board Regular
Joined
Mar 16, 2017
Messages
236
I am looking for a recommendation on a formula or other option to best complete the following task.

I have two data sheets that have different data but have a common identifier between the two, so my ask is to take the common identifier and to essentially merge the data from both sheets onto one sheet. What I have done initially was used VLOOKUP on one sheet and its searching the other data sheet for the common identifier and then bringing along the accompanying data. Here is a copy of my current formula =VLOOKUP($A$35,Case_Form!$A2:$C$44,2,FALSE). My struggle is I would like to be able to bring the whole row of data over rather than my current process where I am changing what cell to bring over in my formula ie 2-3-4-5.... I am sure there is a much better way to accomplish this task. Thanks in advance.
 

Some videos you may like

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,951
Office Version
2010
Platform
Windows
This formula can be copied across to capture the whole row:
Rich (BB code):
=VLOOKUP($A$35,Case_Form!$A2:$C$44,COLUMNS($A:B),FALSE)
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,206
Office Version
2007
Platform
Windows
If the column you are looking for is B, then C, then D, etc, then:

=VLOOKUP($A$35,Case_Form!$A2:$Z$44,COLUMN(),FALSE)
 

Watch MrExcel Video

Forum statistics

Threads
1,102,614
Messages
5,487,872
Members
407,612
Latest member
idoq16

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top