Formula to lookup values and copy to another sheet

AndyJM87

New Member
Joined
Aug 31, 2018
Messages
28
Hello, I will try and explain as best as I can...

I need to copy the the values from "Data" sheet "Column G" across to "Mod Inst Audit Register" sheet in the rows under each serial number.

I tried this =VLOOKUP($A$6,Data!$C:$G,5,FALSE)

All this does is copy across "Embodied". From the images below, you can see that Mod No. 9 shows "Embodied", but in the other sheet shows "Applicable". But it does not copy "Applicable" across, just fills the whole row with "Embodied".

I tried XLOOKUP and still have the same results.

Data.PNG
Mod Register.PNG


Can someone please modify my formula to copy all of Column G across to the Rows under each serial number.

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You can't do that with any of the lookup functions, if you read the help for them they all say that they return the 'first' matching record, which is exactly what you're getting.

If you've tried xlookup then that means you should have the filter function, you can adjust the range as needed but I would advise against using the entire column.
Excel Formula:
=TRANSPOSE(FILTER(Data!$G$2:$G$2000,Data!$C$2:$C$2000=$A6))
 
Upvote 0

Forum statistics

Threads
1,214,986
Messages
6,122,611
Members
449,090
Latest member
vivek chauhan

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