Abbreviation of Text

Pestomania

Active Member
Joined
May 30, 2018
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a few options that populate on a label and I am trying to identify how to get the abbreviation (other than doing an if/then or a vlookup to another table).

Here are the options and the abbreviations:

Input RequiredIR
Finished GoodFG
Non-Conforming MaterialNM
Conforming MaterialCM
Raw MaterialRM
Non InventoryNI
Government Furnished EquipmentGFE

By using formula:
Excel Formula:
=LEFT(A2,1)&MID(A2,FIND(" ",A2)+1,1)
I get the first two letters of the abbreviation. I used
Excel Formula:
=LEFT(A2,1)&MID(A2,FIND(" ",A2)+1,1)&MID(A2,FIND(" ",A2,FIND(" ",A2)+1)+1,1)
to get the three letter identifier but it broke everything other than GFE because there was only one space.

Is there a formula that would provide the first letter after every space no matter the length of the statement?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi @Pestomania.

Flash Fill automatically fills your data when it senses a pattern.

In this case, if the name "Input Required" is in cell A2, in cell B2 write the letters IR
In the cell below write the letters FG.
Now select cells B2 to B8, select from the menu Data, Flash Fill


Reference:
 
Upvote 0
Hi Dante,
Hi @Pestomania.

Flash Fill automatically fills your data when it senses a pattern.

In this case, if the name "Input Required" is in cell A2, in cell B2 write the letters IR
In the cell below write the letters FG.
Now select cells B2 to B8, select from the menu Data, Flash Fill


Reference:
Thank you for that information. These abbreviations feed a field that is on a different excel sheet. This would work if I was using a VLookup, which I could do but was hoping to avoid if possible.

It is feeding a label like this:

1682008790956.png
 
Upvote 0
How about
Fluff.xlsm
AB
1
2Input RequiredIR
3Finished GoodFG
4Non-Conforming MaterialNM
5Conforming MaterialCM
6Raw MaterialRM
7Non InventoryNI
8Government Furnished EquipmentGFE
Main
Cell Formulas
RangeFormula
B2:B8B2=CONCAT(LEFT(TEXTSPLIT(A2," ")))
 
Upvote 0
Solution
How about
Fluff.xlsm
AB
1
2Input RequiredIR
3Finished GoodFG
4Non-Conforming MaterialNM
5Conforming MaterialCM
6Raw MaterialRM
7Non InventoryNI
8Government Furnished EquipmentGFE
Main
Cell Formulas
RangeFormula
B2:B8B2=CONCAT(LEFT(TEXTSPLIT(A2," ")))
As always Fluff, thank you!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,659
Members
449,114
Latest member
aides

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