PC Review


Reply
Thread Tools Rate Thread

Add Charaters to the beginning of a column of numbers.

 
 
=?Utf-8?B?TGl6?=
Guest
Posts: n/a
 
      2nd May 2007
I have a spreadsheet with about 3500 rows of text.
The first column is numbers. I'd like to add a prefix "DEL" to each number
in the entire column.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VmVyZ2VsIEFkcmlhbm8=?=
Guest
Posts: n/a
 
      2nd May 2007
Liz,

here's one suggestion

Sub test()

Dim c As Range
Application.Calculation = xlCalculationManual
For Each c In Application.Intersect(ActiveSheet.UsedRange,
ActiveSheet.Range("A:A"))
With c
.Value = "DEL " & .Text
End With
Next c
Application.Calculation = xlCalculationAutomatic

End Sub


--
Hope that helps.

Vergel Adriano


"Liz" wrote:

> I have a spreadsheet with about 3500 rows of text.
> The first column is numbers. I'd like to add a prefix "DEL" to each number
> in the entire column.
>

 
Reply With Quote
 
dq
Guest
Posts: n/a
 
      2nd May 2007
Liz,

Insert a new column before your first column and enter the formula
="DEL"&B1 in cell A1. Copy this down for all the rows. Then select the
entire range and choose Edit/Copy. Now select the original range in
column B and choose Edit/Paste Special, select 'Values' and click OK.
Now you can delete column A again.

DQ

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      2nd May 2007
On Wed, 2 May 2007 09:15:36 -0700, Liz <(E-Mail Removed)> wrote:

>I have a spreadsheet with about 3500 rows of text.
>The first column is numbers. I'd like to add a prefix "DEL" to each number
>in the entire column.


Do you want it to just "look" that way; or do you need to actually turn it into
a string?

If it is just an appearance issue, then you could use formatting:

Select the cells.

Format/Cells/Number/Custom Type: "DEL"General


--ron
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMMING TOTALS BASING ON CHARATERS ENTERED IN CELLS OF ONE COLUMN Lawsim Microsoft Excel Worksheet Functions 2 23rd May 2011 05:21 PM
How to fill fill a column with numbers, beginning at number X,counting up. Mike C Microsoft Access 1 16th Mar 2008 09:27 PM
Count equal numbers in beginning of a column =?Utf-8?B?RmlkZGxlck9uVGhlUm9vZg==?= Microsoft Excel Programming 5 25th Jan 2006 07:08 AM
Change the number of charaters in a cell by adding a zero to the beginning =?Utf-8?B?UGV0ZXI=?= Microsoft Excel Misc 2 2nd Dec 2003 08:21 PM
Re: Change the number of charaters in a cell by adding a zero to the beginning Jean-Paul Viel Microsoft Excel Misc 1 17th Sep 2003 01:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 PM.