ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   cell format options when importing data (https://www.excelbanter.com/excel-discussion-misc-queries/182741-cell-format-options-when-importing-data.html)

t_coop

cell format options when importing data
 
Is there a way to set the cell format options prior to importing a comma
delimeted file. I'm opening a .csv file extension and all of the columns are
being formatted as 'general'. I want to format either one of the columns as
text or all of the columns as text.

Thanks,
Tom

oli merge

cell format options when importing data
 
If you open Excel first, then select new to make a blank document, then open
the csv from within excel (using Data/import external data) then you get a
text file import wizard. On the third page of this you will have the option
to specify which format which columns should be.

This is useful if you are having problems with excel deciding to cut short
phone numbers etc - just format everything as text using this method and
Excel should behave itself.

Hope that help,

Oli

"t_coop" wrote:

Is there a way to set the cell format options prior to importing a comma
delimeted file. I'm opening a .csv file extension and all of the columns are
being formatted as 'general'. I want to format either one of the columns as
text or all of the columns as text.

Thanks,
Tom


Dave Peterson

cell format options when importing data
 
I don't think so.

You could rename the .csv file to .txt, then open the file.

You'll be able to specify the delimiter and the format of each field.

If you have lots of fields to mark as text, you can select the leftmost field
and then shift-click on the rightmost field. Then specify text.

t_coop wrote:

Is there a way to set the cell format options prior to importing a comma
delimeted file. I'm opening a .csv file extension and all of the columns are
being formatted as 'general'. I want to format either one of the columns as
text or all of the columns as text.

Thanks,
Tom


--

Dave Peterson


All times are GMT +1. The time now is 12:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com