View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar Elkar is offline
external usenet poster
 
Posts: 964
Default Add a number infront of a number

There are a couple ways you could do this, depending whether you want a
formula or just data in Column B. A formula would continue to reflect any
changes made to column A later on.

One way, in B1 enter the formula:

=--("2"&A1)

Copy down as needed.
Note that the ("2"&A1) portion returns a text string, and the -- converts
the text string back to a number.

Another way, copy Column A and Paste to Column B.
Then, in any blank cell enter 20000
Copy that cell
Select your data in Column B
From the Edit Menu, select "Paste Special..."
Check the "Values" and "Add" options
Click OK
Delete the 20000 you entered originally

HTH,
Elkar




"Nikki" wrote:

Hi,

I have a spreadsheet that has one column with a 4 digit number in each line.
I would like to copy the digits in this column to a new column and then add
a 2 infront of each 4 digits.

For example.

Column 1
8456
8764
7875
7864

Column 2
28456
28764
27875
27864

I have 500 lines so would like to know if there is a quick way of doing this.

Thanks