Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Prefixing a number to the number in a cell

I have in column A, 1000 numbers, now i need to prefix an identical number to
all the 1000 numbers in A column. What is the easiest way?. I want the number
to be prefixed in the same A column.. Pls help

Regards
Sherees
--
Life isa journey not a destination
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Prefixing a number to the number in a cell

Hi Sherees,

Try this, as I don't believe you can do this with a formula.

Sub PrefixItsSelf()
Dim cell As Range
For Each cell In Selection
cell.Value = cell.Value & cell.Value
Next
End Sub

Copy into the sheet module and select the cells you want to prefix and then
run the macro.

HTH
Regards,
Howard

"Sherees" wrote in message
...
I have in column A, 1000 numbers, now i need to prefix an identical number
to
all the 1000 numbers in A column. What is the easiest way?. I want the
number
to be prefixed in the same A column.. Pls help

Regards
Sherees
--
Life isa journey not a destination



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Prefixing a number to the number in a cell

Hi,

The answer depends on what you want to do with this prefixed number if it's
purely for show then apply a custom format of (say)
"99999"&#

Now any number will have the prefix of 99999

If that doesn't do it for you then post back



Mike

"Sherees" wrote:

I have in column A, 1000 numbers, now i need to prefix an identical number to
all the 1000 numbers in A column. What is the easiest way?. I want the number
to be prefixed in the same A column.. Pls help

Regards
Sherees
--
Life isa journey not a destination

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
Copying the number of a custom formatted number cell fbvideo Excel Discussion (Misc queries) 2 January 25th 07 11:00 PM
Random cell/number and dont repeat selected cell/number Hector PR Excel Discussion (Misc queries) 0 October 16th 06 05:02 PM
formatting cell number based on previous cell number Pasquini Excel Discussion (Misc queries) 3 June 20th 06 06:36 AM
Count number of times a specific number is displayed in a cell ran subs Excel Worksheet Functions 1 June 27th 05 05:01 PM
Creating a certain number of entries based on a number in a cell PPV Excel Worksheet Functions 4 June 16th 05 10:25 PM


All times are GMT +1. The time now is 04:16 PM.

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

About Us

"It's about Microsoft Excel"