Trying to separate words from text

adjustment

New Member
Joined
Apr 21, 2016
Messages
25
Maybe someone can help me figure this out and hopefully it is a fun one for you guys to figure out. :)

I am trying to separate text from a long list of products. In the middle of the name is either the word "silver" or "gold" and then there is a jewelry type. The problem is that some of the titles can have one to three words before silver or gold and I need those words to stay together. I can't use text to columns because it will just separate each word and then there is a ton to clean up.

Examples:

Garnet Silver Ring
Red Garnet Silver Pendant
Large Red Gold Necklace

So I need to be able to group by either garnet, red garnet, etc. and also how many are rings or pendants, etc.

Anyone have any insight?

Thanks in advance!
 
Re: help trying to separate words from text

Whats in the cell you are pointing the formula to? And what is the other word?
 
Last edited:
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Re: help trying to separate words from text

=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LOWER($A2);"silver";REPT(" ";99));"gold";REPT(" ";99));"gents";REPT(" ";99));(COLUMNS($A$2:A2)-1)*99+1;99))

This is what I put in there - the third word is "gents" - I am in germany - hence the semi-colons
 
Upvote 0
Re: help trying to separate words from text

this is what I mentioned at the start:

garnet silver ring
red garnet silver ring
red garnet gents silver ring
etc.
 
Upvote 0
Re: help trying to separate words from text

Ok its because you have two of your keywords in the same cell. If you dragged it across one more cell it should show the right words.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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