Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
geoffwright
 
Posts: n/a
Default how to stop excel formatting


I want a column to have data in any format, especially like
3/1/32
and leave it in that format i.e. NOT to try and convert it to a date

other rows are left untouched as they are obviously not dates e.g.
28/7/4/13

Both text and general format convert 3/1/32 to a long 11691

Is it possible to force this not to convert?


--
geoffwright
------------------------------------------------------------------------
geoffwright's Profile: http://www.excelforum.com/member.php...o&userid=31801
View this thread: http://www.excelforum.com/showthread...hreadid=515257

  #2   Report Post  
Posted to microsoft.public.excel.misc
flummi
 
Posts: n/a
Default how to stop excel formatting

Are you sure you formatted the cell as "text"? When I format a column
as text and enter a date it surely doesn't do any formatting.

But if you type an apostrophe preceding the date it should treat it as
text anyway.

Hans

  #3   Report Post  
Posted to microsoft.public.excel.misc
geoffwright
 
Posts: n/a
Default how to stop excel formatting


I put the two lines below into a csv file without any quotes and opened
it with excel. Line 2 displays no problem, line 1 is converted into a
long 11691 with either TEXT or GENERAL format. I want the column left
in its original format but excel insists on trying to convert anything
that looks like a date

3/1/32
28/7/4/13


--
geoffwright
------------------------------------------------------------------------
geoffwright's Profile: http://www.excelforum.com/member.php...o&userid=31801
View this thread: http://www.excelforum.com/showthread...hreadid=515257

  #4   Report Post  
Posted to microsoft.public.excel.misc
NAVEEN
 
Posts: n/a
Default how to stop excel formatting

Hi geoffwright,

Yes. You are correct. When you enter something like date Excel will take it
as Date and again when you format it, it will show some strange number. That
number is the number of minutes ... .

The solution for it is very simple ...
- Assuming you data is in Column-A, Insert a blank column after Col-A i.e.,
Col-B
- Type the following formula in Col-B
="'"&A1

(don't confuse it is just Equal to and double quotation and single quotation
and double quotation and amprasend symbol and A1)

- Copy it to following cells
- Select all the cells in this column, whichever you have copied
- Copy
- Paste in Col-A

Done



Regards
NAVEEN


"geoffwright" wrote:


I want a column to have data in any format, especially like
3/1/32
and leave it in that format i.e. NOT to try and convert it to a date

other rows are left untouched as they are obviously not dates e.g.
28/7/4/13

Both text and general format convert 3/1/32 to a long 11691

Is it possible to force this not to convert?


--
geoffwright
------------------------------------------------------------------------
geoffwright's Profile: http://www.excelforum.com/member.php...o&userid=31801
View this thread: http://www.excelforum.com/showthread...hreadid=515257


  #5   Report Post  
Posted to microsoft.public.excel.misc
geoffwright
 
Posts: n/a
Default how to stop excel formatting


I had thought of something like that but this formats the two lines as
03/01/1932 '11691
28/7/4/13 '28/7/4/13


--
geoffwright
------------------------------------------------------------------------
geoffwright's Profile: http://www.excelforum.com/member.php...o&userid=31801
View this thread: http://www.excelforum.com/showthread...hreadid=515257



  #6   Report Post  
Posted to microsoft.public.excel.misc
flummi
 
Posts: n/a
Default how to stop excel formatting

When you import a csv file, don't double click or open it, select
data--get external data--import text file
selecet the csv file and go through the subsequent dialogue step by
step. One screen lets you define the format of every column. Select
"text" for the date column. That should work.

Hans

  #7   Report Post  
Posted to microsoft.public.excel.misc
geoffwright
 
Posts: n/a
Default how to stop excel formatting


Well done Flummi,
that forces it to be text rather than date/minutes

Many Thanks


--
geoffwright
------------------------------------------------------------------------
geoffwright's Profile: http://www.excelforum.com/member.php...o&userid=31801
View this thread: http://www.excelforum.com/showthread...hreadid=515257

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
WHEN DOWNLOADING A TEXTFILE EXCEL DELETES BLANK ROWS - STOP THIS? shell3 Excel Worksheet Functions 0 October 21st 05 03:29 PM
Excel changing number formatting and source data in graphs on it's own!!! JohnHamer Excel Discussion (Misc queries) 2 September 22nd 05 02:29 PM
How to stop Excel from changing the cell properties? Ikke Excel Discussion (Misc queries) 5 May 4th 05 10:12 PM
lose formatting (border) in excel cell after pasting from word Reverse_Solidus Excel Discussion (Misc queries) 2 March 16th 05 10:01 PM
Excel error - remove some formatting Jason Morin Excel Discussion (Misc queries) 0 March 11th 05 02:42 PM


All times are GMT +1. The time now is 07:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"