Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default I want to replace the first character in a column of text

We have a client that has several thousand rows of data in a single column
formatted as this example shows: A12345B. Where the alpha characters are
any of the 26 available. They want to change the leading alpha character
from whatever it is presently to an upper case X while leaving the rest of
the line unaffected.

Any and all help appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default I want to replace the first character in a column of text

or if you need a macro, just replace the range here with yours

Sub replace_text()
For Each cell In Range("a1:a30")
cell.Value = "X" & Right(cell.Value, Len(cell.Value) - 1)
Next
End Sub

--


Gary


"Biredndra" wrote in message
...
We have a client that has several thousand rows of data in a single column
formatted as this example shows: A12345B. Where the alpha characters are
any of the 26 available. They want to change the leading alpha character
from whatever it is presently to an upper case X while leaving the rest of
the line unaffected.

Any and all help appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default I want to replace the first character in a column of text

Thank you very much Kassie...I very much appreciate the time you took to
share this solution with me...it works elegantly and is easy to employ...

Major Kudos!

Birendra

"Kassie" wrote:

Hi Biredndra

With the data in Col A, enter into A1, then copy down

="X"&RIGHT(A1,LEN(A1)-1)
--
ve_2nd_at. Randburg, Gauteng, South Africa


"Biredndra" wrote:

We have a client that has several thousand rows of data in a single column
formatted as this example shows: A12345B. Where the alpha characters are
any of the 26 available. They want to change the leading alpha character
from whatever it is presently to an upper case X while leaving the rest of
the line unaffected.

Any and all help appreciated.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default I want to replace the first character in a column of text

Thank you Gary: The macro you created works very well and is very
helpful...I am very grateful for your time and assitance...!

Thanks again...

Birendra

"Gary Keramidas" wrote:

or if you need a macro, just replace the range here with yours

Sub replace_text()
For Each cell In Range("a1:a30")
cell.Value = "X" & Right(cell.Value, Len(cell.Value) - 1)
Next
End Sub

--


Gary


"Biredndra" wrote in message
...
We have a client that has several thousand rows of data in a single column
formatted as this example shows: A12345B. Where the alpha characters are
any of the 26 available. They want to change the leading alpha character
from whatever it is presently to an upper case X while leaving the rest of
the line unaffected.

Any and all help appreciated.







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
Excel 2007 - Formatting text in cell (character by character) TomC Excel Discussion (Misc queries) 0 January 29th 10 07:25 PM
Find Character in Text and put value in next column c8tz Excel Worksheet Functions 2 February 2nd 07 12:31 AM
Excel: replace all 2 spaces to FF/LR in column of text Bill Craig Excel Discussion (Misc queries) 4 June 7th 06 05:40 PM
HELP - How to replace CRLF with a character withing an excel column Dino Buljubasic Excel Discussion (Misc queries) 1 August 25th 05 07:49 PM
VBA code to define nbr of text character a a cell/column James[_35_] Excel Programming 0 March 18th 05 05:52 PM


All times are GMT +1. The time now is 12:17 AM.

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"