Hey all. Could use your help with figuring out a formula. I have a column with text and I want a formula to turn each cell into an acronym. So take "Long Island City" and make "LIC" for instance. How can I do that?

like
Posting as :
works at
You are currently posting as works at

CONCAT(LEFT((TEXTSPLIT(yourtext,” “)))

like

OP this is 100% your solution.

like

How consistent is the text? I would use Concat nested functions. The first nested function would need to grab the first letter. I can’t think of what it would be off the top of my head. The second/third nested functions could be TextAfter and use a space (“ “) as the delimiter.

like

It's consistent. All in title case.

Concat(
Left(A1,1),
Iferror(mid(A1,search(“ “,A1),1),””)
Iferror(mid(A1,search(“ “,A1,(search(“ “,A1)+1)),1),””))

This takes the first letter, the letter after the first space and the letter after the second space. If you have more than three words you can add another part where you use the position of the second space+1 as the starting point for the search

I wrote this on my phone so there might be syntax errors

like

Not sure how to do it off the top of my head, but one algorithm could be to parse each cell searching for the first letter of each word, then concatenate them. Excel might not be the best tool to use. Maybe a regular expression method. I'm interested in a good way, too.

like

Create the acronym table then Vlookup the City cell and return acronym.

Also, you could consider VBA Find and Replace.

like

✅I agree and think this is neater.

It allows you to add in multiple long versions that convert to the same city, or to change the acronym.
Like changing ‘New York’ and ‘New York City’ to ‘NYC’.
It would also allow you to change some acronyms to be longer to avoid duplicates (otherwise Charlotte and Chicago will both return ‘C’).

like

First create a lookup table key for the acronyms.
So select all the data, copy as values into a new column, then go to the data and select remove duplicates (this will give you all the unique cities in your list). Then, in the column next to your unique values, type in the acronym you want each city to be represented by.

Next, in the column next to your original data use vlookup( the cell to the left, the unique data table, column 2, exact match)

like

Yea this does just that. No matter how you do it you have to write what the acronym is at least once. This is just done in a “look up table”

like

Here is my (sloppy) solution.

Assuming F7 contains your city, and assuming that you have three words maximum:

=iferror(MID($F$7,1,1),"")&
iferror(mid($F$7,FIND(" ",$F$7,1)+1,1),"")&
iferror(mid($F$7,FIND(" ",$F$7,FIND(" ",$F$7,1)+1)+1,1),"")

Where you just continue the FIND chain if you have more than three words

like

https://www.ablebits.com/office-addins-blog/excel-replace-substitute-functions/

dim szColValue as string
dim szColValueUpperCase as string
dim szColRange as string
dim szIndividualWords() as string
dim szAcronym as string


' CAPTURE THE COLUMN VALUE
szColRange = "A1"
szColValue = Range(szColRange).Value
szColValueUpperCase = UCase(szColValue)

' SPLIT THE UPPERCASE COLUMN VALUE BY THE SPACES
szIndividualWords = Split(szColValueUpperCase, " ")

' WALK THE FIRST LETTER OF EACH SPLIT INTO THE ACRONYM
szAcronym = ""
for (lIdx = LBound(szIndividualWords) to UBound(szIndividualWords)
szAcronym = szAcronym & left(szIndividualWords(lIdx),1)
next

My first step would be to just see what Flash Fill decides to do. Haha

Flash fill should work

Related Posts

I have an investment idea. Would be great for banks and investors to speculate, but it involves creating a market for the product. Who should I approach first banks or investors?

like

Thoughts on going from a national firm to a smaller one with ~200 employees and $65M in revenue? I’m a first year tax manager and can get a 33% raise by going to this firm.

like

1) I know that most of you will say that buying an expensive engagement ring is a waste and bad, etc. so let’s start with the assumption that I don’t care and it’s happening
2) does it make sense to finance an engagement ring purchase or buy in cash? If financing, how much would you have to put down for a ~$30k ring? (If you’re upset by this number just replace ring with car or education or wedding or whatever you feel good about lol)

likefunnysmart

What was the maximum RRP that we could expect from Optum for an expectational performance?

like

Has HCl reopened their offices in India. I was having hr discussion and they told office have been reopened.

like
Post Gif
like

To ZSers who got onsite: How to get onsite opportunities as BTSA?

like

having some period like bleeding (less than moderate bleeding) at 11 weeks with no cramps. my doctor can’t see me until next week. have any of you experienced this with a normal pregnancy and proceeded to carry to term ? nipts was all normal.

like

Does Pwc AC also have tie ups with Creche and Montesori in Bangalore to support childcare. Where can we get the information and policies

like

This is my first job in a large corporate company, and I’m trying to gauge how long it normally takes to move from entry level to another internal position in the insurance industry. I have been applying internally for a year now and I am wondering if this is normal or if my company is just slow? I am a top performer, with great metrics, and I have some wonderful connections I’ve made who support me. I just can’t seem to move up. How long did it take you to move up? How many tries did it take?

like

Fish that transitioned from Citi to Goldman Sachs
What do you miss from Citi Or what did you hate?

What would make u want to go back?

Did you feel like the workload was less when you got to Goldman or did it get harder?

like

Does anyone has any idea on relocation policy of Citi? Does Citi provides relocation expenses within the same city?Citi

like

is it better to lease or buy (brand new...or a yr old) a Lexus RX350 ?

like

Vettel you beauty ❤️

like

Cloud surfing to Vegas.

Post Photo
like

Going to Denver mid December, would like to drive up to the Rocky’s. What trail would you recommend for a day trip and wouldn’t be too difficult with weather conditions at that time? Is it possible?

Situation true for most of us now a days...

Post Photo
funnylike

Hey, Deloitte USI is hiring for the following positions. Please reach out to me in case you want to apply.

Happy to help..:)

Post Photo

🤝 Pay it Forward:

Drop a piece of advice or wisdom that has seriously helped you in life or career!

Help another user and pay it forward. 👇

like

Have you ever dealt with unsafe work conditions? How did you deal with it when it's not being addressed?

like

Additional Posts in Excel Genius

Has anyone had an issue with index match and lookups returning NA when trying to manipulate data from a password protected workbook?

How can I add multiple characteristics within one cell and make sure that a pivot table can read both values independently if needed? E.g., I have a column titled “color” and in one cell I write “red” and the other “red, blue”. I’d like a pivot table / formula to be able to count that there are technically two “reds” in this data set. Any tips?

like

Vlook up isn't recognizing a couple of cells even though it's feeding off a pivot and when I check with an " if =" it comes up as being the same.
Any advice on what I need to check?
Thanks

like

Struggling with this:
Suppose I want to shortlist companies that serve the priority industry vertical of a country. So I have the industries served by company (one column for each industry) and (cont)

Does anyone know what purple tables mean in Excel?

I know about green and orange, but never saw purple before and trying to figure it out.

likefunny

I am trying to recreate this without the numbers at the end. Any advice?

Post Photo
likehelpful

This is dumb, but. How can I pull and average the numbers in column b associated with the 4 values in column a? So, (sum of all As/total number of As) without filtering?

Post Photo
like

What’s the keyboard shortcut to get into the “insert options” dialogue when you’ve inserted a new row with Ctrl+Shift+Plus?

like

EY trying to move away from Excel . Think it’s possible? Want to see it happen?

like

Would anyone be willing to teach me vlookup?

like

I’m referencing a cell (numeric) to a text cell. Is there a way to format that number to include commas? See example in comments.

Anyone use power query before? My goal is I have multiple look up values in one cell (separated by comma) and I need it to look up those values and return values from another table which also may have multiple values (separated by comma) anyone know how to do that? I played around with power query today but it wasn’t giving me what I wanted

like

How do I change line style@back to default on excel? Accidentally click on one, and now it wants to use that style every time. I just want to be able to use the ones in the typical drop down

like

Is there a way for me to automate creating columns to do this so I can drag across and create my columns? For example--
1Q2021 2Q2021 3Q2021 4Q2021 2021 1Q2022?

likesmart

I’m calculating a bunch of totals and averages by category on one worksheet by filtering data in different categories from another worksheet. However, when I change the filters, the previously..(cont)

What are some common reasons that a COUNTIF formula might not be working correctly? I'm using the correct range and value to count. I'm not seeing "ERROR" but the values aren't correct (it's not counting everything). Thx.

like

How can I copy a formula from one sheet to another?i tried the simple Ctrl+C, Ctrl-V, but the formula refers to the old sheet.

like

How do I compare two sheets to make sure they are identical?

like

Does anyone from PwC have a list of the favorite groups shortcuts for excel? Please provide. Much appreciated .

like

Hi All,
Looking to automate a manual process for the client and thinking of creating macros for with VBA. Has anyone done anything similar?

In the process of learning but wanted to reach out for any tips, tricks and advice anyone may have.

Thanks I’m advance.

like

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal