Compare if a value in Range exists in a separate multi-column Range

CMSREPORTS

New Member
Joined
Nov 29, 2018
Messages
10
Office Version
  1. 2013
Platform
  1. Windows
I am working on a simple project to see if any items of a range exists in a second multi column range
For some reason, i always get a FALSE answer when matching an item in the Shopping List 2.
Shopping List 1 and 3 work fine
I also tried to do a 4th list, but that didn't work at all.

I know I am missing something obvious.


ABCDEFGHIJK
1Item1Item2Item3At least one item on the Shopping List:Shopping List 1Shopping List 2Shopping List 3
2ApplePearOrange
TRUE​
=SUMPRODUCT(--(A2:C2=SL_13))>0AppleFoodfood
3BananaStrawberryPeach
FALSE​
=SUMPRODUCT(--(A3:C3=SL_13))>0FoodFoodfood
4BreadCheeseCola
TRUE​
=SUMPRODUCT(--(A4:C4=SL_13))>0FoodPeachfood
5FoodFoodfood
6FoodFoodCola
Named Range SL_13: i1:k6

1659108334877.png
 

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.
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)


That formula is comparing A2 with col I, B2 with col J & C2 with col K.
Is that what you want?
 
Upvote 0
I want to compare each A2, B2, and C2 to I$2:K$6, then and return TRUE if >0 items match
and do that for each row.

I just tried this.... =SUMPRODUCT(COUNTIF(B2:D2,$I$2:$K$6))>0

This seems to have done the trick. Simple but it works.
 
Upvote 0
Solution
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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