Macro Help Copy Specific Text from One cell into another

Solved/Closed
steve22522 Posts 1 Registration date Tuesday June 4, 2013 Status Member Last seen June 4, 2013 - Jun 4, 2013 at 05:01 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jun 16, 2013 at 10:20 AM
Here is the scenario:

I have a large excel spreadsheet and I have a column in which I only need the last ten characters of each line copied or moved to the cell right beside it. i.e.

A B
Thisisit-0000000000 => 0000000000

And I need this done for the entire table so thus in a loop. Is there any way to specify the copying of only the last ten characters of a cell into the cell beside it?

Thanks in advance for anyone who looks at this!

2 responses

Blocked Profile
Jun 4, 2013 at 05:11 PM
=RIGHT(C11,3)
Where C11 is the cell to check and retrive the last 10 from, in this example, we are only getting the last three(3). ONce you have made the calculation work in one cell, click it, drag it for the whole column, and check to see that the formula is correct in all places. If you do the first 2 cells, Excel will complete the rest with a drag of cells.

If you really want "records", then you should be using a DB and not a spreadsheet.
1
Use formula =right(A1,10)

if you added this formula to b1, this would only take the 10 letters from the right in A1
1
Blocked Profile
Jun 6, 2013 at 09:26 AM
I agree!
0
sorry, I thought I was breaking new ground!
0
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Jun 16, 2013 at 10:20 AM
why break any thing. and if you have to break any thing, why break new stuff. break old :)
0