Search from multi range

TH123

New Member
Joined
Nov 15, 2022
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi Excel master,

I've data source as same as peach area & What I need to do is yellow area (uploaded image). Pls support. Thanks.

Data Source
ItemLocationItem type
a,b,cNorthCap
b,d,aSouthHat
b,aNorthCap

Need to insert formula at "item type"column
ItemLocationItem type
aNorthWhich formula should be used to see result = cap?
aSouthWhich formula should be used to see result = hat?
bNorthWhich formula should be used to see result = cap?
bSouthWhich formula should be used to see result = hat?
 

Attachments

  • Untitled (1).png
    Untitled (1).png
    10.4 KB · Views: 6

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I am assuming that in your actual data, the "Items" are not all just single letters like your sample. See if this does what you want.

23 05 30.xlsm
ABC
1ItemLocationItem type
2a,b,cNorthCap
3b,d,aSouthHat
4b,aNorthCap
5
6ItemLocationItem type
7aNorthCap
8aSouthHat
9bNorthCap
10bSouthHat
Lookup
Cell Formulas
RangeFormula
C7:C10C7=UNIQUE(FILTER(C$2:C$4,ISNUMBER(SEARCH(","&A7&",",","&A$2:A$4&","))*(B$2:B$4=B7),""))
 
Upvote 1
Solution
I am assuming that in your actual data, the "Items" are not all just single letters like your sample. See if this does what you want.

23 05 30.xlsm
ABC
1ItemLocationItem type
2a,b,cNorthCap
3b,d,aSouthHat
4b,aNorthCap
5
6ItemLocationItem type
7aNorthCap
8aSouthHat
9bNorthCap
10bSouthHat
Lookup
Cell Formulas
RangeFormula
C7:C10C7=UNIQUE(FILTER(C$2:C$4,ISNUMBER(SEARCH(","&A7&",",","&A$2:A$4&","))*(B$2:B$4=B7),""))
Hi Peter,

Sorry for late response. Yes, my actual data is not single letter & I've tried with your formula & it works well. Appriciated your support with full scenarios of data ;)
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,378
Messages
6,124,603
Members
449,174
Latest member
ExcelfromGermany

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