Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Pre-pending and post-pending cell data in Excel

Question:

Is there a VB command or a way in Excel to prepend and postpend data
in an Excel cell.

For example, let's say I have a column with the following numbers

11888
3623
1234

How can I format all the cells in that column so that numbers have an
* at the beginning and at the end? So my results would look like this.

*11888*
*3623*
*1234*
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Pre-pending and post-pending cell data in Excel

David:

you can do the following

Range("a2")= "*" & range("a2") & "*"

assume that the first row of data is in row a2
you will have to go over all cell to do the change.

Andres

-----Original Message-----
Question:

Is there a VB command or a way in Excel to prepend and

postpend data
in an Excel cell.

For example, let's say I have a column with the following

numbers

11888
3623
1234

How can I format all the cells in that column so that

numbers have an
* at the beginning and at the end? So my results would

look like this.

*11888*
*3623*
*1234*
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Pre-pending and post-pending cell data in Excel

See one other guess at your other post.


David Neustadt wrote:

Question:

Is there a VB command or a way in Excel to prepend and postpend data
in an Excel cell.

For example, let's say I have a column with the following numbers

11888
3623
1234

How can I format all the cells in that column so that numbers have an
* at the beginning and at the end? So my results would look like this.

*11888*
*3623*
*1234*


--

Dave Peterson

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
Count pending issues prior to 1/15/2009 Vic Excel Discussion (Misc queries) 2 June 4th 09 02:49 PM
I need to show the last number in a rows in the total pending row Jen S New Users to Excel 2 January 30th 09 10:30 PM
Conditional Format Pending Text Input Native Excel Discussion (Misc queries) 1 January 16th 08 02:52 PM
HOW CAN I MAKE OUR PENDING SHIPMENT SHEDULE IN EXCEL? anish Excel Discussion (Misc queries) 1 December 19th 06 08:29 AM
Filter one column for all "Pending" CaptDunsull Excel Worksheet Functions 1 November 23rd 05 05:59 PM


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