A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

=LEFT - Cannot Format



 
 
Thread Tools Display Modes
  #1  
Old August 1st, 2006, 02:53 AM posted to microsoft.public.excel.worksheet.functions
Mirish26
external usenet poster
 
Posts: 1
Default =LEFT - Cannot Format


I downloaded over 2,000 entries which contain date and time in one cell
(20060428 3+12+32). I need the date only and in the format: 04/28/06.
I used =LEFT to obtain the result 20060428. I then tried to format the
result as 04/28/06. Nothing works - I tried all format options and
Data-Text to Columns. I also tried =MID in a futile attempt to
rearrange the numbers!

I presume the problem is because even though the cell appears as:
20060428 it is actually =LEFT(M4,8), etc. - which cannot be formatted.
There was a tip on this site about using =LEFT and "ignore" but that
didn't work either (unless I wasn't using it correctly). Any ideas?
Since I have over 2,000 entries I am desperate! Thanks!


--
Mirish26
------------------------------------------------------------------------
Mirish26's Profile: http://www.excelforum.com/member.php...o&userid=36966
View this thread: http://www.excelforum.com/showthread...hreadid=566880

  #2  
Old August 1st, 2006, 03:14 AM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default =LEFT - Cannot Format

This worked ok for me:

=--TEXT(LEFT(A1,8),"0000\/00\/00")
format it as a date.



Mirish26 wrote:

I downloaded over 2,000 entries which contain date and time in one cell
(20060428 3+12+32). I need the date only and in the format: 04/28/06.
I used =LEFT to obtain the result 20060428. I then tried to format the
result as 04/28/06. Nothing works - I tried all format options and
Data-Text to Columns. I also tried =MID in a futile attempt to
rearrange the numbers!

I presume the problem is because even though the cell appears as:
20060428 it is actually =LEFT(M4,8), etc. - which cannot be formatted.
There was a tip on this site about using =LEFT and "ignore" but that
didn't work either (unless I wasn't using it correctly). Any ideas?
Since I have over 2,000 entries I am desperate! Thanks!

--
Mirish26
------------------------------------------------------------------------
Mirish26's Profile: http://www.excelforum.com/member.php...o&userid=36966
View this thread: http://www.excelforum.com/showthread...hreadid=566880


--

Dave Peterson
  #3  
Old August 1st, 2006, 03:36 AM posted to microsoft.public.excel.worksheet.functions
Mirish26
external usenet poster
 
Posts: 1
Default =LEFT - Cannot Format


Thanks for your response. I entered it as you indicated (=Text) and the
result was: 2006/4/28, however, when I try to format it as a date
mm/dd/yyyy - nothing happens!


--
Mirish26
------------------------------------------------------------------------
Mirish26's Profile: http://www.excelforum.com/member.php...o&userid=36966
View this thread: http://www.excelforum.com/showthread...hreadid=566880

  #4  
Old August 1st, 2006, 03:38 AM posted to microsoft.public.excel.worksheet.functions
Mirish26
external usenet poster
 
Posts: 1
Default =LEFT - Cannot Format


I didn't realize that I was supposed to enter the two -- after the =
sign. I just tried it and it worked. You are brilliant - never in a
million years would I have figured this out! Genius!!


--
Mirish26
------------------------------------------------------------------------
Mirish26's Profile: http://www.excelforum.com/member.php...o&userid=36966
View this thread: http://www.excelforum.com/showthread...hreadid=566880

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Format Cell nastech General Discussion 12 April 28th, 2006 08:31 PM
"Type mismatch" in Format() John Milward Setting Up & Running Reports 5 March 31st, 2006 12:57 PM
Rich Text format not working... diofan56 Running & Setting Up Queries 1 March 14th, 2006 04:40 PM
Customize date format ROY A. DAY Running & Setting Up Queries 20 February 6th, 2006 02:40 AM
HELP! format not working Marshall Barton Setting Up & Running Reports 2 June 10th, 2004 01:57 PM


All times are GMT +1. The time now is 11:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.