Match and show the data from 2 sheets

Nattarinee

New Member
Joined
May 25, 2024
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi

I have a lot of data in 2 sheets
Sheet1 having Name, Surname, and Ref No.
Sheet2 having Ref No., Group and data

I would like to match the Ref No. with both sheets and take the data from sheet2 shown in sheet1

Eg as in the picture
> Sheet1 Column C (64) match to Sheet2 I14 and I15
> Take the data show to Sheet1 (D3,E3) and (F3,G3)

The Ref No. possible to have a multiple of details in Sheet2 and also possible to have nothing match (In this case, I would like to show N/A)

PS As in the pictures, just sample data and I'm using Excel v2016

Could you please help ? Thank you!
1716640038350.png
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
In your actual data, how many times would a number repeat?
 
Upvote 0
IN D3 copied to full range.
Excel Formula:
=IFERROR(INDEX(Sheet2!$A$11:$B$16,AGGREGATE(15,6,ROW(Sheet2!$C$11:$C$16)/(Sheet2!$C$11:$U$16=$C3),1+INT((COLUMNS($D3:D3)-1)/2))-ROW(Sheet2!$A$10),1+MOD(COLUMNS($D3:D3)-1,2)),"")
 
Upvote 0
Better formula.

Excel Formula:
=IFERROR(IF($C3="","",INDEX(Sheet2!$A$11:$B$16,AGGREGATE(15,6,ROW(Sheet2!$C$11:$C$16)/(Sheet2!$C$11:$U$16=$C3),1+INT((COLUMNS($D3:D3)-1)/2))-ROW(Sheet2!$A$10),1+MOD(COLUMNS($D3:D3)-1,2))),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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