lookup value and return every instance of that value

philip121

New Member
Joined
May 22, 2014
Messages
13
Office Version
  1. 365
Platform
  1. MacOS
I need to lookup each value from column A in column B, and return instances of that value from column B into column C.
Example:
lookup from column A: SXWTK00022

results found in column B:
SXWTK00022-2XL
SXWTK00022-LG
SXWTK00022-MD
SXWTK00022-SM
SXWTK00022-XL

copy each result and paste in column C.

Your help is greatly appreciated.
 

Attachments

  • Screen Shot 2020-09-04 at 2.55.54 PM.png
    Screen Shot 2020-09-04 at 2.55.54 PM.png
    75.8 KB · Views: 14
  • Screen Shot 2020-09-04 at 2.55.39 PM.png
    Screen Shot 2020-09-04 at 2.55.39 PM.png
    139.9 KB · Views: 14
Does this one do what you want?

20 09 05.xlsm
ABC
1Sale itemsSKUResult
2SXWTK00022custom10SXWTK00022-2XL
3SXWTK00028custom60SXWTK00022-LG
4SXTWK00030custom70SXWTK00022-MD
5SXWLS00005SXWTK00022-2XLSXWTK00022-SM
6SXWTK00022-LGSXWTK00022-XL
7SXWTK00022-MDSXWTK00028-LG
8SXWTK00022-SMSXWTK00028-XL
9SXWTK00022-XLSXWLS00005-2XL
10SXWTK00028-LGSXWLS00005-LG
11SXWTK00028-XLSXWLS00005-MD
12SXWLS00005-2XL
13SXWLS00005-LG
14SXWLS00005-MD
15SXWTK99928-XL
16
Lookup SKUs (2)
Cell Formulas
RangeFormula
C2:C11C2=FILTER(B2:B20,ISNUMBER(MATCH(LEFT(B2:B20,FIND("-",B2:B20&"-")-1),A2:A5,0)))
Dynamic array formulas.
 
Upvote 0

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.
Does this one do what you want?

20 09 05.xlsm
ABC
1Sale itemsSKUResult
2SXWTK00022custom10SXWTK00022-2XL
3SXWTK00028custom60SXWTK00022-LG
4SXTWK00030custom70SXWTK00022-MD
5SXWLS00005SXWTK00022-2XLSXWTK00022-SM
6SXWTK00022-LGSXWTK00022-XL
7SXWTK00022-MDSXWTK00028-LG
8SXWTK00022-SMSXWTK00028-XL
9SXWTK00022-XLSXWLS00005-2XL
10SXWTK00028-LGSXWLS00005-LG
11SXWTK00028-XLSXWLS00005-MD
12SXWLS00005-2XL
13SXWLS00005-LG
14SXWLS00005-MD
15SXWTK99928-XL
16
Lookup SKUs (2)
Cell Formulas
RangeFormula
C2:C11C2=FILTER(B2:B20,ISNUMBER(MATCH(LEFT(B2:B20,FIND("-",B2:B20&"-")-1),A2:A5,0)))
Dynamic array formulas.


Yes! That's perfect.
Thank You
 
Upvote 0

Forum statistics

Threads
1,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

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