ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   concatenate (https://www.excelbanter.com/excel-worksheet-functions/21065-concatenate.html)

Christy Quesenbery via OfficeKB.com

concatenate
 
I tried adding a hyphen using a previous help screen to no avail. I have
an 11000 line spreadsheet containing one column with 7 digits. I need to
add a hyphen to the 6th position from the left.

Any ideas?

--
Message posted via http://www.officekb.com

Duke Carey

So, you need 6 digits left of the hyphen and 1 to the right, or 5 and 2?

=LEFT(TRIM(A6),6)&"-"&RIGHT(TRIM(A6),1)

Change the 6 & 1 above if you want 5 left and 2 right



"Christy Quesenbery via OfficeKB.com" wrote:

I tried adding a hyphen using a previous help screen to no avail. I have
an 11000 line spreadsheet containing one column with 7 digits. I need to
add a hyphen to the 6th position from the left.

Any ideas?

--
Message posted via http://www.officekb.com



All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com