Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Converting "uppercase" string data to "lower case" in CSV file

I have some string data in CSV formatted spreadsheet.
For example, I fill some cells with lower case strings "true" or
"false"
But after saving the file in CSV format, I see those strings have been
automatically converted to uppercase strings "TRUE" or "FALSE".

I think, there are some configuration in the Excel where this
automatic conversion to uppercase can be avoided. Please let me know.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Converting "uppercase" string data to "lower case" in CSV file

TRUE/FALSE are logical values (-1 and 0 respectively) and Excel always
converts them to dispaly as TRUE/FALSE. To modify the appearance of
TRUE/FALSE enter them as labels by preceeding the entry with an apostrophe:

'True
'False

The apostrophe forces Excel to treat what follows as text and not as a number.

--
Kevin Backmann


" wrote:

I have some string data in CSV formatted spreadsheet.
For example, I fill some cells with lower case strings "true" or
"false"
But after saving the file in CSV format, I see those strings have been
automatically converted to uppercase strings "TRUE" or "FALSE".

I think, there are some configuration in the Excel where this
automatic conversion to uppercase can be avoided. Please let me know.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Converting "uppercase" string data to "lower case" in CSV file

The case isn't changed when you did the saveAs.

You can look at the .csv file in Notepad and verify this.

But if you open the .csv file in excel, you'll see that excel converts the
string true to the boolean value TRUE (same for False).

You can have more control over the input by using:

Data|get external data
(xl2003 menus)

And you'd be able to specify the type for each field--use text for these.

Or you could rename the .csv file to .txt
then use File|Open to open the .txt file.

Then you would see that same wizard.

wrote:

I have some string data in CSV formatted spreadsheet.
For example, I fill some cells with lower case strings "true" or
"false"
But after saving the file in CSV format, I see those strings have been
automatically converted to uppercase strings "TRUE" or "FALSE".

I think, there are some configuration in the Excel where this
automatic conversion to uppercase can be avoided. Please let me know.

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
text string: "91E10" in csv file auto converts to: "9.10E+11" [email protected] Excel Discussion (Misc queries) 2 August 12th 08 03:13 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
how do I count only lower case "x" and exclude upper case "X" jbeletz Excel Worksheet Functions 3 October 14th 06 10:50 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Use "PROPER" to change UPPERCASE text to Title Case on worksheet cmurdock Excel Worksheet Functions 1 January 31st 06 11:19 PM


All times are GMT +1. The time now is 09:42 AM.

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"