Return Yes / NO if match in different spreadsheets

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
594
Office Version
  1. 365
Good afternoon all

In Spreadsheet 1 (Tab "Sheet1) I have..
RowColumn D - EANColumn E - DetailsColumn N - Value
112345BrandHeinz
212345ColourBlue
312345TypeDrink
412346ColourRed
512347BrandSamsung
612347TypeTV

In Spreadhsheet 2 (Tab - "Entries") I have

RowColumn B - EANColumn N - BrandColumn O - ColourColumn P - Type
112345HeinzBlueFood
212346RoverRedCar
312347SamsungBlack
4
5
6

So, what I need to do, in a Spreadsheet 1, Tab 1, is have a YES/NO return if the EAN and Details match,

For Row 1 it looks up EAN 12345 and "Brand". In the 2nd spreadsheet it looks up the EAN in Column B and then looks for the column called "Brand" - where both state "Heinz" it needs to say "YES"

For Row 3, it looks up EAN 12345 and "Type". In the 2nd spreadsheet it looks up the EAN in Column B and then looks for the column called "Type" - where one sheet says "Food" and one says "Drink" it needs to say "MISMATCH"

For Row 6, it looks up EAN 12345 and "Type". In the 2nd spreadsheet it looks up the EAN in Column B and then looks for the column called "Type" - where there is no data, it needs to say "NO"
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Will the data always be in the columns you indicated in both sheets, for example: Details always in column E, Colour always in column O? Also, in which sheet and in which column do you want to return "YES" and "MISMATCH"?
 
Upvote 0
How about
Fluff.xlsm
ABNOP
1EANBrandColourType
212345HeinzBlueFood
312346RoverRedCar
412347SamsungBlack
5
6
Entries


Fluff.xlsm
ABCDENO
1EANDetailsValue
212345BrandHeinzYes
312345ColourBlueYes
412345TypeDrinkNo
512346ColourRedYes
612347BrandSamsungYes
712347TypeTVNo
8
Sheet1
Cell Formulas
RangeFormula
O2:O7O2=IF(COUNTIFS(Entries!$B$2:$B$100,D2,INDEX(Entries!$N$2:$P$100,,MATCH(E2,Entries!$N$1:$P$1,0)),N2),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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