Get related data from 2 worksheets

selvamnarayanan

New Member
Joined
Feb 27, 2016
Messages
36
Office Version
  1. 2019
Platform
  1. Windows
Dear Sir
Can you help me
I have 2 worksheets
Sheet 1 10 columns of data, 300 rows
Sheet 2 14 columns of data, 500 rows
Each sheet has common data in 4 columns
Sheet 1 needs to get data from one column (e.g. column 8) in Sheet 2 (exact match data from the 4 common columns )
Sheet 2 needs to get data from one column (e.g. column 10) in Sheet 1 (exact match data from the 4 common columns)
I have tried using VLOOKUP but the answers are inaccurate
Thank you
selvamnarayanan
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Re: How to get related data from 2 worksheets

if you post an example spreadsheet representing both sheets each 6 columns by 6 rows and show how data is retrieved it will paint a clearer picture...
 
Upvote 0
Re: How to get related data from 2 worksheets

if you post an example spreadsheet representing both sheets each 6 columns by 6 rows and show how data is retrieved it will paint a clearer picture...

SHEET 1
A B C D E F
Doc Age Race Sex Grade Rank
2020 44 I M A
2022 48 I F A
2028 45 C F C
2029 35 C M C

Need Rank - For common records found in SHEET 2




SHEET 2
A B C D E Grade
Doc Age Race Sex Rank
2020 44 I M 13
2022 48 I F 17
2028 45 C F NA
2029 35 C M NA
2083 49 M F 22
2099 39 M M 15

Need Grade - For common records found in SHEET 1
Sheet 2 could have records not found in Sheet 1 & to be ignored

Thank you sir.
Appreciate your help
selvamnarayanan
 
Upvote 0
Re: How to get related data from 2 worksheets

SHEET 1
ABCDEF
DocAgeRaceSexGradeRank
202044IMA13###1
202248IFA17
202845CFCNA
202935CMCNA
Need Rank - For common records found in SHEET 2
SHEET 2
ABCDE
DocAgeRaceSexRankGrade
202044IM13A###2
202248IF17A
202845CFNAC
202935CMNAC
208349MF22
209939MM15
Need Grade - For common records found in SHEET 1
Sheet 2 could have records not found in Sheet 1 & to be ignored
###1
=IF(ISERROR(OFFSET($A$16,MATCH(A4,$A$17:$A$22,0),4)),"",(OFFSET($A$16,MATCH(A4,$A$17:$A$22,0),4)))
###2
=IF(ISERROR(OFFSET($A$3,MATCH(A17,$A$4:$A$7,0),4)),"",(OFFSET($A$3,MATCH(A17,$A$4:$A$7,0),4)))
once they are on 2 sheets you just need to put sheet2! Before the cell references

<colgroup><col span="14"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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