Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How can I add the same text, ex 'Fa-09' to every cell in a column

I'm trying to add the text 'Fa-09' to every cell in a column that already has
existing text. I know 'merging' the cells together will simply take the
value from the first column and overwrite the other column. I tried
'consolidating' but that is more for numerical data...

Any help would be greatly appreciated. Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default How can I add the same text, ex 'Fa-09' to every cell in a column

To add to beginning of text with a space:
="Fa-09 "&A1
To add to end of text with a space:
=A1&" Fa-09"

Copy down as needed. (Note that the ampersand is the quick form for
concatenate, and can be used to string multiple bits of cell contents,
numbers, and text.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Meera" wrote:

I'm trying to add the text 'Fa-09' to every cell in a column that already has
existing text. I know 'merging' the cells together will simply take the
value from the first column and overwrite the other column. I tried
'consolidating' but that is more for numerical data...

Any help would be greatly appreciated. Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default How can I add the same text, ex 'Fa-09' to every cell in a column

Try this macro:

Sub RewriteCell()
Dim lngRow As Long
lngRow = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To lngRow
Range("A" & i).Value = "Fa-09 " & Range("A" & i).Value
Next
End Sub

change the column "A" to whatever column you need.
--
Alex
*Remember to click "yes" if this post helped you. Thank you!



"Meera" wrote:

I'm trying to add the text 'Fa-09' to every cell in a column that already has
existing text. I know 'merging' the cells together will simply take the
value from the first column and overwrite the other column. I tried
'consolidating' but that is more for numerical data...

Any help would be greatly appreciated. Thank you!

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
Find cell address of last cell in a column with text mike in texas Excel Worksheet Functions 8 October 4th 08 05:41 AM
Formula with cell column from cell text mjones Excel Discussion (Misc queries) 3 April 25th 08 01:17 AM
Compare text string of a cell in Column A VS another cell in Colum Tan New Users to Excel 2 August 1st 07 09:45 AM
Compare text string of a cell in Column A VS another cell in Colum Tan Excel Discussion (Misc queries) 1 August 1st 07 09:03 AM
Compare text string of a cell in Column A VS another cell in Colum Tan Excel Worksheet Functions 1 August 1st 07 09:01 AM


All times are GMT +1. The time now is 07:33 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"