Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
bweiner
 
Posts: n/a
Default How do I merge new text into existing text cells.

I need to add the same text (.JPG) to existing text. I have over 4000
existing cells to add this same file extension to. I can't seem to figure
out how to do this without manually going into each cell.

Any suggestions would be great.
  #2   Report Post  
Posted to microsoft.public.excel.misc
filky
 
Posts: n/a
Default How do I merge new text into existing text cells.


enter .jpg into cell B61 for example and assume that you have filenames
10001 and 10002 running down the column starting in A61, A62 etc.
Then type in to cell C61

=+A61&$B$61

The just drag the cell down to copy against each one.


--
filky
------------------------------------------------------------------------
filky's Profile: http://www.excelforum.com/member.php...o&userid=11801
View this thread: http://www.excelforum.com/showthread...hreadid=492599

  #3   Report Post  
Posted to microsoft.public.excel.misc
Rowan Drummond
 
Posts: n/a
Default How do I merge new text into existing text cells.

Say your text is in column A and columns C and D are empty.
In C1 enter ".JPG" without the quotes.
In D1 enter =A1&$C$1
Copy this down as far as needed. You can then select Column D and paste
special values over column A before deleting Columns C and D.

Alternately you could use a macro. Select all the cells you want to
change and the run this:

Sub addjpg()
Dim cell As Range
For Each cell In Selection
If Not cell.HasFormula Then
cell.Value = cell.Value & ".JPG"
End If
Next cell
End Sub

Save your work before trying either option.

Hope this helps
Rowan

bweiner wrote:
I need to add the same text (.JPG) to existing text. I have over 4000
existing cells to add this same file extension to. I can't seem to figure
out how to do this without manually going into each cell.

Any suggestions would be great.

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
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
linking text cells Pilgrim One Excel Worksheet Functions 1 October 19th 05 12:36 AM
How do I merge the text content of two seperate cells into one? Kristine Excel Discussion (Misc queries) 3 October 12th 05 09:46 PM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
How to add another line in cells with existing text? jammer New Users to Excel 1 February 27th 05 11:14 PM


All times are GMT +1. The time now is 02:00 AM.

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"