Formula to extract first name for Empl Nm Column
Hello,
Please excuse my beginner's question.
Is there a formula to extract the first name from an Name Colum with Last, First Mid Initial format?
ie. Doe, John A
Thank you in advance for your help.
Answers
-
Try something like this...
=MID(Name@row, FIND(",", Name@row) + 2, FIND(" ", Name@row, FIND(",", Name@row) + 2) - (FIND(",", Name@row) + 2))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Thank you! and what if there's no Middle initial?
-
Then we would use something along the lines of...
=RIGHT(Name@row, LEN(Name@row) - (FIND(" ", Name@row) + 1))
To put both into a single formula so that it requires less manual intervention...
=IF(FIND(" ", Name@row, LEN(Name@row) - 3) > 0, MID(Name@row, FIND(",", Name@row) + 2, FIND(" ", Name@row, FIND(",", Name@row) + 2) - (FIND(",", Name@row) + 2)), RIGHT(Name@row, LEN(Name@row) - (FIND(" ", Name@row) + 1)))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
@Paul Newcome
I am trying to use this in order to pull a first name from a column that is in a Last, First, (and sometimes Middle Initial) and its not quite right. I believe it's because the source data I have coming in doesn't have a space after the comma from Last,First MI because it does work when I entered a space in.
Can you please help me adjust for this in the formula?
=IF(FIND(" ", [Lead Producer]@row, LEN([Lead Producer]@row) - 3) > 0, MID([Lead Producer]@row, FIND(",", [Lead Producer]@row) + 2, FIND(" ", [Lead Producer]@row, FIND(",", [Lead Producer]@row) + 2) - (FIND(",", [Lead Producer]@row) + 2)), RIGHT([Lead Producer]@row, LEN([Lead Producer]@row) - (FIND(" ", [Lead Producer]@row) + 1)))
-
@Paula_ Try this:
=MID([Lead Producer]@row, FIND(",", [Lead Producer]@row) + 1, IF(FIND(" ", [Lead Producer]@row) > 0, FIND(" ", [Lead Producer]@row, LEN([Lead Producer]@row)) - (FIND(",", [Lead Producer]@row) + 1))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Thank you Paul - tried it and got an Invalid value message.
-
@Paula_ Ok. What does this one do?
=IFERROR(MID([Lead Producer]@row, FIND(",", [Lead Producer]@row) + 1, FIND(" ", [Lead Producer]@row) - (FIND(",", [Lead Producer]@row) + 1)), RIGHT([Lead Producer]@row, LEN([Lead Producer]@row) - (FIND(",", [Lead Producer]@row) + 1))))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
@Paul Newcome
I am getting an Unparseable error with that one
-
@Paula_ I think I may have put one too many closing parenthesis on the end. Try removing one and see fi that helps. If not, are you able to provide a screenshot of the formula open in the sheet as if you are about to edit it?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
That worked!! Just removed the end one and it's working, except when there isn't a middle initial. Sadly those aren't included in all the names, its a mixture.
-
What are you getting when there isn't a middle initial?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Oh apologies - that would be a helpful thing to share. it cuts off the first letter of the first name.
-
Give this a try then:
=IFERROR(MID([Lead Producer]@row, FIND(",", [Lead Producer]@row) + 1, FIND(" ", [Lead Producer]@row) - (FIND(",", [Lead Producer]@row) + 1)), RIGHT([Lead Producer]@row, LEN([Lead Producer]@row) - FIND(",", [Lead Producer]@row))))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
You are the best - that worked!! :) THANK YOU!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!