Compare Sheet1 to Master sheet and return Master sheet data

drewber

New Member
Joined
Sep 23, 2021
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I have Sheet 1 with data and the Master sheet. Due to a sorting error some of the data on Sheet 1 is not correct. The constant is the Episode ID. I have been using Index-Match to locate the Episode ID on both Sheet 1 and Master. However there are 40+ columns on both sheets.

What I need: take Episode ID from Sheet1, locate the ID on Master and return that entire row's data from Master into Final sheet.
 

Attachments

  • Compare.png
    Compare.png
    35.6 KB · Views: 11

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
It is hard to work with a picture. It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach screenshots (not pictures) of your 2 sheets. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0
Can't you just use Filter or XLookup eg

20240716 XLookup get entire row drewber.xlsx
ABCDEFGH
1Episode_IDCurrent PCPDepartment NameRegionCurrent PCPDepartment NameRegion
2195922633AndrewsCity WestSouthAndrewsCity WestSouth
32058254  
42258974536  
52865876324GoghCity NorthEastGoghCity NorthEast
6
7
8FilterXlookup
Sheet1
Cell Formulas
RangeFormula
B2:D2,B5:D5,B3:B4B2=FILTER(Master!$B$2:$D$7,Master!$A$2:$A$7=$A2,"")
F2:H2,F5:H5,F3:F4F2=XLOOKUP($A2,Master!$A$2:$A$7,Master!$B$2:$D$7,"")
Dynamic array formulas.
 
Upvote 0
Thank you XLookup with some tweaks worked for me. Knew it was simple, but simple is not my name.
 
Upvote 0
No problem. Thanks for letting us know. We all fall for making it more complicated than in needs to be from time to time. ;)
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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