ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Copy & Paste Issue (https://www.excelbanter.com/excel-discussion-misc-queries/154312-copy-paste-issue.html)

carrera0000

Copy & Paste Issue
 
I want to copy and paste a row of numbers but want to cut off the last couple
of digits and then format a certain way. Is this possible?

example: 123456789 copy and paste to new row as 123-456



joel

Copy & Paste Issue
 
The easiest way is to create a formula like the one below. the copy the
formula down the entire row.

=LEFT(D13,3)&"-"&MID(D13,4,3)

You can convert the formula to text by copy the range of cells and using
paste special with values checked.

"carrera0000" wrote:

I want to copy and paste a row of numbers but want to cut off the last couple
of digits and then format a certain way. Is this possible?

example: 123456789 copy and paste to new row as 123-456



Peo Sjoblom

Copy & Paste Issue
 
=TEXT(LEFT(A1,6),"000-000")

if you want these as real numbers use

=--LEFT(A1,6)


and use a custom format of 000-000



--
Regards,

Peo Sjoblom



"carrera0000" wrote in message
...
I want to copy and paste a row of numbers but want to cut off the last
couple
of digits and then format a certain way. Is this possible?

example: 123456789 copy and paste to new row as 123-456





carrera0000

Copy & Paste Issue
 
Thanks!

"Peo Sjoblom" wrote:

=TEXT(LEFT(A1,6),"000-000")

if you want these as real numbers use

=--LEFT(A1,6)


and use a custom format of 000-000



--
Regards,

Peo Sjoblom



"carrera0000" wrote in message
...
I want to copy and paste a row of numbers but want to cut off the last
couple
of digits and then format a certain way. Is this possible?

example: 123456789 copy and paste to new row as 123-456







All times are GMT +1. The time now is 12:35 AM.

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