Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default I need a formula that delete first character and adds another

I need a formula that deletes and add:

Example: change

127-0112 to X27-0112

delete first character and replace with "X" or
replace first character with "X"

Tracey Harold
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default I need a formula that delete first character and adds another

A1 =127-0112

Try the formula in B1
="X" & MID(A1,2,LEN(A1))

If this post helps click Yes
---------------
Jacob Skaria


"Tracey" wrote:

I need a formula that deletes and add:

Example: change

127-0112 to X27-0112

delete first character and replace with "X" or
replace first character with "X"

Tracey Harold

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default I need a formula that delete first character and adds another

On Tue, 11 Aug 2009 10:34:01 -0700, Tracey
wrote:

I need a formula that deletes and add:

Example: change

127-0112 to X27-0112

delete first character and replace with "X" or
replace first character with "X"

Tracey Harold


=REPLACE(A1,1,1,"X")

--ron
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default I need a formula that delete first character and adds another

You said you "need a formula", so I presume the responses Ron and Jacob gave
you answer you question. However, you did post your question in a
programming newsgroup, so on the off chance you were really looking for a VB
solution...

Range("A1").Value = "X" & Mid(Range("A1").Value, 2)

--
Rick (MVP - Excel)


"Tracey" wrote in message
...
I need a formula that deletes and add:

Example: change

127-0112 to X27-0112

delete first character and replace with "X" or
replace first character with "X"

Tracey Harold


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
what is the formula that identifies v8 in a row & adds v8+v8=v16? Stacy Excel Discussion (Misc queries) 3 December 31st 08 10:56 PM
How to set up a formula that it adds value on a certain date LoriKLynn Excel Discussion (Misc queries) 5 October 15th 07 11:54 PM
NEED A FORMULA THAT ADDS EVEN OR ODD ROW NUMBERS J Shamp Excel Worksheet Functions 1 February 10th 06 08:33 PM
Formula which adds together worksheets Ant Excel Discussion (Misc queries) 1 July 1st 05 03:50 PM
Exporting adds a character Stuart Y. Excel Discussion (Misc queries) 1 May 11th 05 09:28 PM


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