Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel String question

How do I insert a character into a string at a specified position.

ie; 19120725 needs to be 1912/07/25....

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Excel String question

=LEFT(A2,4)&"/"&MID(A2,5,2)&"/"&RIGHT(A2,2) or
=TEXT(A2,"0000\/00\/00")
--
David Biddulph

"Practiceguys" wrote in message
...
How do I insert a character into a string at a specified position.

ie; 19120725 needs to be 1912/07/25....

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 897
Default Excel String question

You would need a combination of LEFT, MID and RIGHT functions to do
this.

If your data was in A1, try this:

=LEFT(A1,4)&"/"&MID(A1,5,2)&"/"&RIGHT(A1,2)


HTH,
JP

On Jan 8, 3:17*pm, Practiceguys
wrote:
How do I insert a character into a string at a specified position.

ie; 19120725 * *needs to be 1912/07/25....

Thanks,


  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Excel String question

One way.........
=LEFT(A1,4)&"/"&MID(A1,5,2)&"/"&RIGHT(A1,2)

Vaya con Dios,
Chuck, CABGx3


"Practiceguys" wrote:

How do I insert a character into a string at a specified position.

ie; 19120725 needs to be 1912/07/25....

Thanks,

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel String question

I'd convert the value to a real date and then format that cell the way I want.
Then I could use that real date in other calculations.

=--(TEXT(A1,"0000\/00\/00"))

(and with a custom format of yyyy/mm/dd)

Practiceguys wrote:

How do I insert a character into a string at a specified position.

ie; 19120725 needs to be 1912/07/25....

Thanks,


--

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
Change 3 letter text string to a number string Pete Excel Discussion (Misc queries) 3 December 31st 07 07:47 PM
How do I replace last numeric string from a alphanumeric string? Christy Excel Discussion (Misc queries) 3 August 11th 06 12:17 AM
Splitting a text string into string and number mcambrose Excel Discussion (Misc queries) 4 February 21st 06 03:47 PM
to search for a string and affect data if it finds the string? Shwaman Excel Worksheet Functions 1 January 11th 06 12:56 AM
Finding a string/using adjacent data question [email protected] Excel Discussion (Misc queries) 4 January 9th 06 03:59 PM


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