Match only certain text

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
110
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I need to auto populate the yellow cells (I2:L2) based on the table in A1:D4. I can't seem to find a way to match certain taxt in column A and row 1.

Book1
ABCDEFGHIJKLM
1VanBusCarVanVan lightCar darkCar
2Others5845614
3Blue light649
4Blue dark871
Sheet1


Thanks for any help!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

I need to auto populate the yellow cells (I2:L2) based on the table in A1:D4. I can't seem to find a way to match certain taxt in column A and row 1.

Book1
ABCDEFGHIJKLM
1VanBusCarVanVan lightCar darkCar
2Others5845614
3Blue light649
4Blue dark871
Sheet1


Thanks for any help!
Forgot to mention, cells I1:L1 are dynamic, meaning that it will change. So, I will need the yellow cells to auto update whenever I change the data in I1:L1.

Thanks!
 
Upvote 0
Pull this to the right

Excel Formula:
=LET(x,SEARCH(" ",I1&" ")+1,INDEX($B$2:$D$4,MATCH("*"&MID(I1,x,10)&"*",$A$2:$A$4,0),MATCH(LEFT(I1,x-2),$B$1:$D$1,0)))
 
Last edited:
Upvote 0
Solution
Thanks JEC! However, this formula would not work if there is an additional text, like van mini or van mini light, correct?
 
Upvote 0
No it won't. I assumed that you did not have duplicate additionals
 
Upvote 0
I just noticed that some of the items' description are two words instead of one :(

Will try to work around it. Thanks so much for your help!
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,178
Members
452,615
Latest member
bogeys2birdies

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