How to try a Power Query merge or append instead of vlookups?

surfdoc37

New Member
Joined
Mar 12, 2004
Messages
23
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
  2. MacOS
I have two sheets to combine. The first with about 1000 rows and 25 columns of values. The second with about 300 rows and a dozen columns. The columns on each sheet are different. Entries in column A of the second sheet are a subset of the first sheet.

I can make a third sheet with a bunch of vlookups across the top to include 300 names, two columns from the second sheet, and 20 columns from the first sheet.

I pull the data into each sheet from csv files downloaded to my desktop.

Trying to figure out if I could more elegantly use maybe the "merge" or "append" function (or something else) under the "get and transform data" to effectively just pull the data I want--the rows from sheet 2, and selected columns from both sheet 1 and sheet 2-- directly into the combined third sheet.

Appreciate any ideas.
 

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
I would definitely look into Power Query for this. I believe you will want to Merge Query as New to create a new table consisting of columns from both tables using the common column for matching. You may want the Join type to be FullOuter to return all rows from both tables (so any unmatched records are still shown, but nulls will be added to fill in empty cells). Post back if you need some help setting this up.
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,451
Members
452,514
Latest member
cjkelly15

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top