Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default add characters to each cell

hi all,

is there a formula to add characters to all fields in a column?

like add Croco at the beginning of each cell all along the column...

Thank you in advance
--
Croco
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default add characters to each cell

One way is to insert a helper column, add the text you want.

Say your data is column A.

Insert a new column B:
In B1, put this formula
="Croco" & A1
Then drag that formula down column B as far as you need.
I might use:
=if(a1="","","Croco") & A1

Then select column B
edit|Copy
Select A1
Edit|Paste special|Values
Delete column B

Croco wrote:

hi all,

is there a formula to add characters to all fields in a column?

like add Croco at the beginning of each cell all along the column...

Thank you in advance
--
Croco


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default add characters to each cell

Thank you Dave

i checked this custom thing in the "format cell" and it worked.. :)
--
Croco


"Dave Peterson" wrote:

One way is to insert a helper column, add the text you want.

Say your data is column A.

Insert a new column B:
In B1, put this formula
="Croco" & A1
Then drag that formula down column B as far as you need.
I might use:
=if(a1="","","Croco") & A1

Then select column B
edit|Copy
Select A1
Edit|Paste special|Values
Delete column B

Croco wrote:

hi all,

is there a formula to add characters to all fields in a column?

like add Croco at the beginning of each cell all along the column...

Thank you in advance
--
Croco


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default add characters to each cell

hi,
formulas return values, they cannot perform actions like add characters to a
cell or group of cells. this might require a macro.
but you can use a formula as a work around.
example:
in a1 you have abc and want to add def
in b1 put the formula... =A1 & "def"
Cell B1 will then display abcdef
you can copy B1 and pastespecial values in A1 then delete B1
now A1 reads abcdef - no formula.
If you have a column of data, you can copy the formula down, then copy
column B and Pastespecial Values in column A then delete column B

regards
FSt1

"Croco" wrote:

hi all,

is there a formula to add characters to all fields in a column?

like add Croco at the beginning of each cell all along the column...

Thank you in advance
--
Croco

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default add characters to each cell

hi again,
if you just have to....
Sub addstuff()
Dim r As Range
Dim r2 As Range
Dim t As Range
Set r = Range("A2")
Set t = Range("G2") 'put what your want to add here (croco?)
Do While Not IsEmpty(r)
Set r2 = r.Offset(1, 0)
r = t & r
Set r = r2
Loop
End Sub


"Croco" wrote:

hi all,

is there a formula to add characters to all fields in a column?

like add Croco at the beginning of each cell all along the column...

Thank you in advance
--
Croco



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how many characters are there in a cell/ sarah Excel Worksheet Functions 1 April 5th 07 09:31 PM
Need more characters in my cell Kelly Excel Discussion (Misc queries) 2 December 2nd 06 02:06 AM
Need more characters in a cell Kelly New Users to Excel 1 December 2nd 06 02:04 AM
characters in a cell Pammy Excel Discussion (Misc queries) 1 April 25th 06 03:53 PM
Max # of characters ina cell? hitparader Excel Discussion (Misc queries) 1 September 6th 05 08:36 PM


All times are GMT +1. The time now is 02:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"