Page 1
Page 1
Started By
Message

Excel Help

Posted on 8/29/20 at 7:57 am
Posted by CHEDBALLZ
South Central LA
Member since Dec 2009
22731 posts
Posted on 8/29/20 at 7:57 am
In A1 I have a number let's say. LT30M9782345987

I want cell A2 to read 2345-987

I can get it to read 2345987 but without the dash by using =RIGHT(A1,7)

What would I need to insert into my formula to get the - to appear or 2345-987
Posted by Bestbank Tiger
Premium Member
Member since Jan 2005
75368 posts
Posted on 8/29/20 at 8:13 am to
=concatenate((left(right(a1,7),4));"-"; (right(a1,3)))

Not sure if I have the parenthesis lined up correctly.

Or you could do a second column where you parse the result.
Posted by CHEDBALLZ
South Central LA
Member since Dec 2009
22731 posts
Posted on 8/29/20 at 11:08 am to
I'll work with that, thanks a bunch
Posted by Bestbank Tiger
Premium Member
Member since Jan 2005
75368 posts
Posted on 8/29/20 at 1:02 pm to
quote:

I'll work with that, thanks a bunch


Anytime

One caveat - Concatenate is definitely the command to join strings of characters. But I'm not sure if you use commas or semicolons between the strings. Excel uses one and Open Office uses the other and I can never remember which is which.
Posted by lynxcat
Member since Jan 2008
24713 posts
Posted on 8/30/20 at 10:05 am to
Excel uses commas.

I would have broken that into 3 or 4 columns but that formula is more elegant
Posted by castorinho
13623 posts
Member since Nov 2010
84396 posts
Posted on 8/31/20 at 8:35 am to
Fwiw, if the length of the strings in column A isn't the same, you'll have to incorporate that into the equation
first pageprev pagePage 1 of 1Next pagelast page
refresh

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