Formula to check cell for a word (Text), if true return abbreviation for that word.

ediejane

New Member
Joined
Feb 24, 2012
Messages
11
Apologies in advance for the ambiguous title.

I am creating a sheet to automatically generate SKU's by combining product attributes.

[TABLE="width: 1000"]
<tbody>[TR]
[TD]Product Name[/TD]
[TD]Size[/TD]
[TD]Color[/TD]
[TD]Type[/TD]
[TD]Material[/TD]
[TD]Shape[/TD]
[TD]Quantity[/TD]
[TD]SKU[/TD]
[/TR]
[TR]
[TD]2mm Aqua Glass Rhinestone Round[/TD]
[TD]2mm[/TD]
[TD]Aqua[/TD]
[TD]Rhinestone[/TD]
[TD]Glass[/TD]
[TD]Round[/TD]
[TD]3k[/TD]
[TD]2m-aq-rhresrd-3k[/TD]
[/TR]
</tbody>[/TABLE]

Columns for Size, Color, Type, Material, Shape and Quantity have dropdown lists with options for each attribute.

The selected option for each attribute is then trimmed to 2 or 3 characters (EXCEPT FOR SHAPE). The SKU is generated using CONCATENATE function of the trimmed characters.

For the Shape attribute, the list includes Round, Emerald, Marquis, Teardrop, Square, Rectangle. Trimming text will not work for this attribute. Instead, if "round" is selected from the list, I want the characters of "rd" in the SKU. If "Marquis" is selected I want the characters of "mq" in the SKU.

So what is the correct formula to do this? Is it an IF or MATCH or LOOKUP formula?

I hope this makes sense.

Thank you in advance for any help.

Regards,
EJ
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Re: Formula Help - Check cell for a word (Text), if true return abbreviation for that word.

tabulate your abbreviations and use vlookup()
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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