ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   ADDING DASHES WITHIN NUMBERS IN A COLUMN (https://www.excelbanter.com/excel-discussion-misc-queries/184242-adding-dashes-within-numbers-column.html)

paulp

ADDING DASHES WITHIN NUMBERS IN A COLUMN
 
i have a column of part numbers (1391 lines) and i need to insert a
dash/hyphen into each number at a specific place. for example, one original
number is

HQ505279513

and i need it to be

HQ5052795-13

this then has to be repeated for all the other numbers in that column. am i
able to perform this in excel 2003?

thanks,
paul

Dave Peterson

ADDING DASHES WITHIN NUMBERS IN A COLUMN
 
You could use another column with formulas like:

=left(a1,9)&"-"&right(a1,2)

if all the cells contain 11 character numbers.



paulp wrote:

i have a column of part numbers (1391 lines) and i need to insert a
dash/hyphen into each number at a specific place. for example, one original
number is

HQ505279513

and i need it to be

HQ5052795-13

this then has to be repeated for all the other numbers in that column. am i
able to perform this in excel 2003?

thanks,
paul


--

Dave Peterson

Gary''s Student

ADDING DASHES WITHIN NUMBERS IN A COLUMN
 
Say your data is in column A. In another column:

=LEFT(A1,9) & "-" & RIGHT(A1,2)
--
Gary''s Student - gsnu200780


"paulp" wrote:

i have a column of part numbers (1391 lines) and i need to insert a
dash/hyphen into each number at a specific place. for example, one original
number is

HQ505279513

and i need it to be

HQ5052795-13

this then has to be repeated for all the other numbers in that column. am i
able to perform this in excel 2003?

thanks,
paul



All times are GMT +1. The time now is 05:45 AM.

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