add a character to every cell

sirpikaz

New Member
Joined
Jul 23, 2007
Messages
1
Hello everyone.

real simple question:

I have one sheet with 1 column and 2000 rows.

the problem is i need add an @ symbol to the beginning of each row. Anyway to use a formula to do this?

Typing them all in by hand would be insane = /.


Thanks!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
welcome to the board,

say column A has your data...

in B1 type

="@"&A1


Fill down
 
Upvote 0
A macro approach. Press ALT + F11 to open the Visual Basic Editor. Insert > Module then copy and paste

Code:
Sub test()
Dim Lastrow As Long, i
Lastrow = Cells(Rows.Count, 1).End(xlUp).Row
For i = 1 To Lastrow
    Cells(i, 1).Value = "@" & Cells(i, 1).Value
Next i
End Sub

Close the VBE. Tools > Macro > Macros, click test then click the Ruin button.
 
Upvote 0
That should say the 'Run' button :LOL: but always best to create a backup before running (one of my) macros.
 
Upvote 0

Forum statistics

Threads
1,217,357
Messages
6,136,081
Members
449,990
Latest member
orthodmd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top