Excel Vlookup or MATCH Comparison Between Multiple Sheets

harvw

New Member
Joined
Apr 16, 2017
Messages
19
Hi Guys,

Does anyone know how I can lookup the values in one row in sheet 2 (see tables below) and compare this with all rows in sheet 1?

If any of the cell values in one row in sheet 2 equal the values in any of the rows in sheet 1 then I would like to return the values 'TRUE' or 'FALSE' for each cell that is being compared.

Additionally I want to create a separate column which returns either TRUE if all of the values in one row within sheet 2 equal ALL of the values in any row in sheet 2 or else FALSE.

And for sheet 3 I was thinking of being able to do exactly the same thing as I did for sheet 2 but with mismatched columns.

Your help on this would be greatly appreciated!

sheet 2

idcdnameratingnumberclient
1032444913ethelow33ybr
9103452242nabhigh77
7783455455roshemedium50mac
2489990899strylow90
1345662231iothigh40nre
1345662231iothigh90med

<tbody>
</tbody>


sheet 1

idcdnameratingnumberclient
1032444913ethemedium40
1032444913ethehigh23
1032444913ethelow33ypr
9103452242nabhigh77
7783455455roshemedium50mac
2489990899strylow90
1345662231iothigh35
1345662231iothigh90med

<tbody>
</tbody>


sheet 3

nameratingnumber idclientcd
ethelow331032444ypr913
nabhigh779103452242
roshemedium507783455mac455
strylow902489990899
iothigh401345662nre231
iothigh901345662med231

<tbody>
</tbody>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Code:
[COLOR=#333333]then I would like to return the values 'TRUE' or 'FALSE' for each cell that is being compared. [/COLOR]

Where you need these True /False ?


Regards,
DILIPandey
 
Upvote 0
Try this on sheet 2...
A​
B​
C​
D​
E​
F​
1​
sheet 2
2​
3​
idcdnameratingnumberclient
4​
1032444913ethelow33ybr
5​
9103452242nabhigh77
6​
7783455455roshemedium50mac
7​
2489990899strylow90
8​
1345662231iothigh40nre
9​
1345662231iothigh90med
10​
11​
12​
idcdnameratingnumberclient
13​
TRUE​
TRUE​
TRUE​
FALSE​
FALSE​
FALSE​
14​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
15​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
16​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
17​
TRUE​
TRUE​
TRUE​
TRUE​
FALSE​
FALSE​
A13=A4=INDEX(Sheet1!$A$4:$F$11,MATCH(Sheet2!$A4,Sheet1!$A$4:$A$11,0),MATCH(Sheet2!A$3,Sheet1!$A$3:$F$3,0))

Adjust the sheet1 references for sheet3 for that part
 
Upvote 0
Hi Ford,


Additionally I want to create a separate column which returns either TRUE if all of the values in one row within sheet 2 equal ALL of the values in any row in sheet 2 or else FALSE.

Any ideas on this?
 
Upvote 0
The following formula doesn't appear to work:

A13=A4=INDEX(Sheet1!$A$4:$F$11,MATCH(Sheet2!$A4,Sheet1!$A$4:$A$11,0),MATCH(Sheet2!A$3,Sheet1!$A$3:$F$3,0))
 
Upvote 0
I would need these values in a separate column i.e. cells G2:G7

You have 6 columns of data and your sample shows 6 rows (presumably more?), how would you want all those comparisons shown in just 6 cells? Or am I missing something here?
 
Upvote 0
Hi Ford,


Additionally I want to create a separate column which returns either TRUE if all of the values in one row within sheet 2 equal ALL of the values in any row in sheet 2 or else FALSE.

Any ideas on this?

For that, just do a countif(range,TRUE) and compare with a COUNTA() of the same range?
 
Upvote 0
The following formula doesn't appear to work:

A13=A4=INDEX(Sheet1!$A$4:$F$11,MATCH(Sheet2!$A4,Sheet1!$A$4:$A$11,0),MATCH(Sheet2!A$3,Sheet1!$A$3:$F$3,0))

what doesn't work? Wrong answer? No answer?
Did you adjust my ranges to suite your date?
 
Upvote 0

Forum statistics

Threads
1,218,125
Messages
6,140,632
Members
450,300
Latest member
nashetho

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