Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Stopping Excel from automatically converting CSV data to number format when opening CSV file.

Posted on 2013-05-14
12
Medium Priority
?
550 Views
Last Modified: 2013-05-27
I am opening a CSV file with Excel. I want excel to leave the data in certain fields alone and not convert it. Excel automatically converts the data value of "001" to the number "1". However, I need the sequence 001 to remain so I can concatenate it with another data value that has a similar sequence of 001 so that resulting data value is 001001 NOT 11. How do I prevent excel from autoconverting the data when it opens a csv file?
0
Comment
Question by:Scruples89
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 3
12 Comments
 
LVL 22

Accepted Solution

by:
CompProbSolv earned 2000 total points
ID: 39166520
Take a look at:
http://office.microsoft.com/en-us/excel-help/import-or-export-text-txt-or-csv-files-HP010099725.aspx#BMimport_data_from_a_text_file_by_openi

It appears that you should be able to import the file and restrict the formatting by setting it appropriately in the spreadsheet before importing.
0
 

Author Comment

by:Scruples89
ID: 39166568
Thanks! I followed the instructions in that link and it worked. Now my problem is that when Icreate teh concatenate formula, it is not calculating. I want to add two columns together to create one value in a third column and then save it back to strickly csv format. This means I want to do the calculation, get the values and then save the values as data. Any suggestions?
0
 
LVL 22

Expert Comment

by:CompProbSolv
ID: 39166584
The value() function may be what you want.  For example:
=value(a1&a2)
will concatenate the strings in a1 and a2, then convert them to a numeric value.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:Scruples89
ID: 39166635
My problem is that it appears that excel has "turned off" formula calculations. as a result of me importing the data as text..
0
 

Author Comment

by:Scruples89
ID: 39166706
I got the formulas switched back on by saving the file as a excel workbook and reopening it.
0
 

Author Comment

by:Scruples89
ID: 39166708
As an excel workbook I can now use formulas to combine text values, but the formulas are not calculating automatically. I need to push the F9 key to get them calculating properly.
0
 

Author Comment

by:Scruples89
ID: 39166721
Now I want to save the worksheet as a csv file but it does not give me that option when I go to save it. It only permits me to save it as excel type files.
0
 

Author Comment

by:Scruples89
ID: 39166725
I cannot believe that I am having so manyproblems working the csv data in excel! It is a nightmare. Is there a better progam to use to work with CSV data?
0
 

Author Comment

by:Scruples89
ID: 39166732
Why is Excel NOT giving me the option to save it as a CSV file?
0
 

Author Comment

by:Scruples89
ID: 39166737
I am opening up another question on this problem! Thanks for helping me here.
0
 
LVL 22

Expert Comment

by:CompProbSolv
ID: 39166817
Needing to hit F9 implies that auto recalc is off.  In Excel 2010 that is found under:
File
Options
Formulas
Workbook Calculation

I'm not at all sure why you can't save to CSV.  What version of Excel?  What other options does it list?
0
 

Author Closing Comment

by:Scruples89
ID: 39199849
Thanks this worked!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question