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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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