search and match the string

michellejames

New Member
Joined
Aug 16, 2013
Messages
27
Hi there,

Greeting! I have keywords list. I like that keywords match with our table make and model. And show "Match" word beside of match keywords.
Like column A values check in table J & K and show match word in column B

ABCDEFGHIJK
KeywordsResultTypeYearMakeModel
2018 chevy traverse air filterMatchAir Filter2017CadillacXT5
cadillac xt5 air filterMatchAir Filter2017GMCAcadia
pa99222Air Filter2018CadillacXT5
premium guard air filter pa99222Air Filter2018GMCAcadia
a3212cAir Filter2018ChevroletTraverse
2017 acadia engine air filterAir Filter2018BuickEnclave
ac delco a3212c
ac delco air filter a3212c
acdelco a3212c
gm a3212c
gmc acadia air filterMatch
premium guard air filter
2017 gmc acadiaMatch
chevrolet+traverse+2018Match
fit air filter
2018 gmc acadiaMatch
cadillac xt5Match
buick enclave
chevrolet traverseMatch
gmc acadiaMatch
chevrolet air filter
air fit
gmc air filter
2018 traverseMatch
chevrolet gmcMatch
guard air filter
2017 gmc
premium guards
premium fit
2017 2018
premium filter
guard filter
air guard
air filter filters
premium
2017
on guard
fit fit
2018
filters filters
air

<tbody>
</tbody>

Regards,
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
=IFERROR(LOOKUP(2^15,SEARCH($C$3:$C$20,A3),$C$3:$C$20),"")
HYFjvnZ.png
 
Upvote 0
you are welcome!

Hi there,

Greeting! This formula is not working properly. Something wrong here. Please check my result

=LOOKUP(2,1/SEARCH($K$2:$K$14,A2),$K$2:$K$14)


ABCDEFGHIJK
Keywords#N/APartTypeYearMakeModel
2014 bmw 535d air filter535dAir Filter2014BMWX5
bmw 535d air filter535dAir Filter2014BMW535d
13718518111#N/AAir Filter2014BMW535d xDrive
bmw x5 air filterX5Air Filter2015BMW535d
2011 bmw x5 air filterX5Air Filter2015BMW535d xDrive
2012 bmw x5 air filterX5Air Filter2015BMWX5
2013 bmw x5 air filterX5Air Filter2015BMW740Ld xDrive
2015 bmw x5 air filterX5Air Filter2016BMWX5
cabin air filter bmw x5X5Air Filter2016BMW535d
2008 bmw x5 cabin filterX5Air Filter2016BMW535d xDrive
2009 bmw x5 cabin filterX5Air Filter2017BMWX5
2011 x5 air filterX5Air Filter2018BMWX5
2013 bmw 535i air filter#N/A
2013 bmw x3 air filter#N/A
2013 bmw x5 cabin filterX5
2014 bmw x5 air filterX5
2016 bmw x5 air filterX5
64119248294#N/A
bmw cabin filter x5X5
bmw x5 filterX5
premium guard air filter#N/A
fit air filter#N/A
2014 bmw x5X5
2015 bmw x5X5
air 2015#N/A
bmw filter#N/A
bmw air#N/A
air fit#N/A
bmw x5X5
bmw air filter#N/A
16 air filter#N/A
premium guards#N/A
premium fit#N/A
xdrive#N/A
air 2014#N/A
premium filter#N/A
premium air#N/A
16 filter#N/A
guard filter#N/A
fit filter#N/A
air guard#N/A
air filter filters#N/A

<tbody>
</tbody>



conclusion: Why the following keywords show found the result? As the year is the mismatched column I. I think the formula only search mode and make not check the year. In that situation, we got the wrong result. Please suggest on this.

2011 bmw x5 air filter
2012 bmw x5 air filter
2013 bmw x5 air filter
2008 bmw x5 cabin filter
2009 bmw x5 cabin filter
2011 x5 air filter
2013 bmw x5 cabin filter



Regards,
 
Last edited:
Upvote 0
4185e0fd5f3ca1bffc8531a605a81544-full.png
Please Try this at C3,
=IF(H3=D3,LOOKUP(2,1/SEARCH($J$3:$J$14,A3),$J$3:$J$14),"-")
use this image before apply, segregate year column.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

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