Started By
Message
locked post

Excel Help: Return the first few letters of a cell...

Posted on 1/21/20 at 3:18 pm
Posted by finchmeister08
Member since Mar 2011
40522 posts
Posted on 1/21/20 at 3:18 pm
Basically, A1 contains:


Name - Description


How do I return just the "Name" in a new cell instead of the full "Name - Description"?
Posted by BugAC
St. George
Member since Oct 2007
58284 posts
Posted on 1/21/20 at 3:19 pm to
Text to Columns
Posted by Tbonepatron
Member since Aug 2013
8462 posts
Posted on 1/21/20 at 3:19 pm to
Learn to code...




No seriously, that’s going to be in VBA territory
Posted by LNCHBOX
70448
Member since Jun 2009
89397 posts
Posted on 1/21/20 at 3:19 pm to
Are the names all the same number of characters?
Posted by Booyow
Member since Mar 2010
4193 posts
Posted on 1/21/20 at 3:20 pm to
Step 1:



Posted by finchmeister08
Member since Mar 2011
40522 posts
Posted on 1/21/20 at 3:20 pm to
quote:

Are the names all the same number of characters?

nope
Posted by LouisianaLady
Member since Mar 2009
83168 posts
Posted on 1/21/20 at 3:21 pm to
Column A is all you have in the sheet? Nothing in B, C, etc? Then yes, Text to Columns. Set your delimiter to be the dash. Assuming by "return" you mean, to separate the data? Or do you mean you're trying to get it to be underneath but in the same cell?

If the former - Data > Text to Columns > select "other" as your delimiter and type a dash. Done. It will put everything after the dash into column B.
This post was edited on 1/21/20 at 3:23 pm
Posted by Buckeye06
Member since Dec 2007
25459 posts
Posted on 1/21/20 at 3:21 pm to
yea if they are you could just use left.

If they are between 4-7 you could do that then chop as necessary. not clean but better than doing it all
Posted by gthog61
Irving, TX
Member since Nov 2009
71001 posts
Posted on 1/21/20 at 3:21 pm to
Are you wanting to auto fill as you type in a value? You can do that with a macro, it’s online if you search via autofill
Posted by Saltwatersoul04
The Island
Member since Apr 2013
1401 posts
Posted on 1/21/20 at 3:21 pm to
Tech Board
Posted by GreatLakesTiger24
Member since May 2012
61589 posts
Posted on 1/21/20 at 3:22 pm to
=left(a1,5)
Posted by thedrumdoctor
Gonzales,La
Member since Sep 2016
900 posts
Posted on 1/21/20 at 3:22 pm to
Select the cell with the info you want.
In the data tab, select text to columns.
Select Delimited. Click next
Then enter your dividing character, in your case I'm guessing it is the hyphen, in the other box.
then select your destination cell

Edit : Dang y'all are fast.
This post was edited on 1/21/20 at 3:27 pm
Posted by TheCaterpillar
Member since Jan 2004
76774 posts
Posted on 1/21/20 at 3:23 pm to
If they all have a space before the hyphen, you can literally type the "Name" in a new column for the first couple of rows and Excel will asked to autopopulate the rest of that column with just name. Hit "Enter" when the row looks populated but greyed out.

Little known feature I use a whole lot.

There are also formulas you can use, but this is WAY easier.
Posted by Caplewood
Atlanta
Member since Jun 2010
39477 posts
Posted on 1/21/20 at 3:23 pm to
something something pivot tables
Posted by finchmeister08
Member since Mar 2011
40522 posts
Posted on 1/21/20 at 3:26 pm to
quote:

Select the cell with the info you want.
In the data tab, select text to columns.
Select Delimited. Click next
Then enter your dividing character, in your case I'm guessing it is the hyphen, in the other box.
then select your destination cell

this worked flawlessly. thanks.
Posted by Tigers13
New Orleans
Member since Feb 2005
1819 posts
Posted on 1/21/20 at 3:26 pm to
=LEFT(A1,SEARCH(" -",A1,1))
Posted by xXLSUXx
New Orleans, LA
Member since Oct 2010
10628 posts
Posted on 1/21/20 at 3:26 pm to
Alt+F4
Posted by Scooba
Member since Jun 2013
20027 posts
Posted on 1/21/20 at 3:28 pm to
Column A is the Descriptions mother.
Posted by Winston Cup
Dallas Cowboys Fan
Member since May 2016
66986 posts
Posted on 1/21/20 at 3:33 pm to
=LEFT(A1,(FIND(" ",A1,1)-1))
Posted by VolsOut4Harambe
Baw Land
Member since Sep 2017
14918 posts
Posted on 1/21/20 at 3:36 pm to
=LEFT(A1,*number of letters in the name*)

Boom
first pageprev pagePage 1 of 2Next pagelast page

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on X, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookXInstagram