Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Inserting a colon into text

Hello

I have imported text that has the following format:
20 May 2014 1715

I need it to be in the following format:
20 May 2014 17:15

Can you help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Inserting a colon into text

Hi,

Am Tue, 18 Feb 2014 16:59:27 +0000 schrieb muskrat1977:

I have imported text that has the following format:
20 May 2014 1715


your text in A1. Then in B1:
=LEFT(A1,LEN(A1)-5)+TIME(MID(A1,LEN(A1)-3,2),RIGHT(A1,2),)
and format the cell DD MMM YYYY hh:mm



Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Inserting a colon into text

Hi,

Am Tue, 18 Feb 2014 19:02:12 +0100 schrieb Claus Busch:

=LEFT(A1,LEN(A1)-5)+TIME(MID(A1,LEN(A1)-3,2),RIGHT(A1,2),)
and format the cell DD MMM YYYY hh:mm


or try:
=--SUBSTITUTE(A1,MID(A1,LEN(A1)-2,1),MID(A1,LEN(A1)-2,1)&":")
and format custom DD MMM YYYY hh:mm


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
how to change colon to semi-colon in CP/List Seprator Khoshravan Excel Discussion (Misc queries) 3 February 4th 09 07:41 PM
Inserting colon as text iashorty Excel Programming 4 June 24th 08 03:31 PM
inserting colon into a value at a specific interval [email protected] Excel Programming 4 August 1st 07 07:54 PM
inserting colon xtrmhyper[_8_] Excel Programming 8 July 1st 06 07:28 PM
Insert colon in text in cell Phoenix Excel Discussion (Misc queries) 4 February 3rd 06 09:16 AM


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