How to import variable columns into fixed columns in Excel 2007 - text

I have a text file that has the variable columns.
I need to convert the variable columns to fixed columns in Excel 2007 (or Access Database 2007 - whichever works better? or however better anywhere!).
How do?
Thanks!
Holly

From the Data tab, touch From Text in the Get external data group.
This will invoke the Import Wizard to allow you to pick the file............You can tell the Wizard to use the tilde as the separator.

Related

Is there a way to retain the phone numbers with + sign format when exporting to Excel/CSV

I noticed that anytime I export from somewhere like Salesforce where the Phone = +123124141.
The data in Excel will just become =123124141 or #NAME? or some other Error spouted from Excel.
This makes data patch extremely painful and manual. Any ideas how to get around this?
When you create the file, use a different extension than .csv or .txt (these ones are interpreted by EXCEL as a green light to interpret columns as numeric/date, etc and format accordingly. Use .DAT, for example. When you open it from within EXCEL it will invoke the text import wizard, and there you should choose comma separated (or tab separated, etc, as the case maybe), and on the final screen of the wizard, choose the columns you don't want reformatted (you can choose all of them, if you like), and choose Text. Now the column values will be kept intact.
Alternatively you can first create a blank workbook/sheet, and use Data From Text to invoke the Wizard and bring the data in the same way.
If you don't want EXCEL to launch and open when you double-click on a .CSV file, without asking questions, you can remove the file-association (of CSV with EXCEL) using Windows explorer.
It is reasonably easy to develop a VBA macro to import such delimited files using 'TEXT' data types to automate what the Wizard would do.

Import CSV in Excel 2016 without PowerQuery

I have used Excel for many years, but this PowerQuery is not helpfull in my day to day work. It lays on to much functionality not needed. I.E Automatic formating, connection to CSV file etc. It also have problems with decimal convertions.
In Excel 2013 I select Data - From text and i get a Text Import Wizard.
But in 2016/365 I automatical get PowerQuery with wrong converts of numbers 7,87 (desimal sign is comma) - and values is handled as text.
Is there any option to turn of use of PowerQuery, and get back to Text Import Wizard instead?
Yes, it is possible! The following is from professor-excel.com:
Go to File
Go to Options
Go to Data
Check all required legacy wizards, as shown in the image below.
The legacy wizard is now available under the tab Data --> GetData.
Changing the Excel settings:
Now the old text import wizard is available:

CSV file in Excel is not rendering correctly

This is the content of the excel file:
"Windows Excel","AndroMoney","20140227"
"Id","Valuta","Importo","Categoria","Sottocategoria","Data","Spese(Trasferimento Out)","Entrate(Trasferimento In)","Note","Periodicita'","Progetto","Pagatore/Beneficiario","uid"
"19","EUR","-1079.63","SYSTEM","INIT_AMOUNT","10100101","","Bank","","","","","116EUR-1079.63_26_102"
"20","EUR","-2662.9","SYSTEM","INIT_AMOUNT","10100101","","Credit Card","","","","","117EUR-2662.9_26_102"
"960","EUR","0","SYSTEM","INIT_AMOUNT","10100101","","Bank austria","","","","","265C6BD548CE41FEA0250BF4E19C392F"
"1","EUR","8","Food","Breakfast","20130326","Cash","","","","","","1EUR8_1_1"
And here is how Excel shows its content:
In another post they say it's due to the usage of the , instead of ;
Is it possible to solve the problem without changing Operating System settings?
You can select column A and go to Data - Text to Columns. Then use delimited and define , as the delimiter. This will delimit the data and show it correctly.
If you're asking how to make it delimit based on the comma when you open it, I didn't read the question that way. But instead of double-clicking the file to open, go to the Data tab and Get External Data from it, defining the delimiter.
I use a trick.
Change the extencion from CSV to TXT, the open the file with excel, define , as the delimitator character
In Excel 2010 and newer csv files are read correctly. In older versions you need to specify a separator during import in text import wizard.

how to export query to Excel without truncating Memos to 255 chars?

Using Access 2010. I have a query with several Memo fields in it that I would like to export to an Excel sheet. Every method I have tried so far has truncated the Memo fields:
Export Wizard
Right-clicking on the query and choosing Export
Exporting to CSV
DoCmd.TransferSpreadsheet
Copy/pasting the data into open Excel sheet
How can I get all the Memo data in my export, or at least the full 32767 characters that an Excel cell can display?
Export into excel with option "Export data with formating and layout" set to YES. If this checkbox is not set to yes, access truncate texts to first 255 characters.
enter image description here
Adaam's suggestion was very helpful. I ended up doing this the following way:
Select query into table.
In design view, change relevant Text fields to Memo fields, because the SELECT INTO automatically set them as Text.
Delete all rows from table.
Add rows from query using INSERT INTO.
Import table contents into Excel range using Range.CopyFromRecordset. I had to do this from the table instead of directly from the query because I had UDFs in my query.
We are using older version of MS Access and XL and cannot upgrade so "export data with formatting and layout" is not available. Doing Copy > Paste Special > Text worked for our use case and didn't have to rework queries etc. but doesn't work if answer set is more than a few thousand rows.

Excel Source in SSIS Column limitations

Can we import data from Excel with more than 256 fields in to a SQL database using SSIS. If so is there any trick for this, as I couldn’t see more than 255 columns in the column selection at Excel source in SSIS
Yes, I had to save the Excel file as CSV, and then I had access to all 360 columns in my import file.
NOTE: Because I wanted to save errors out in the same format, I needed to have my ERRORS file in CSV as well, and the error file had to exist when I set up the connection to it, with only the column headings in the first row, so that all the columns would map automatically in SSIS.
If you mean you couldn't see more than 255 rows in the Data Source Component's preview within SSIS then that is expected since I believe that is the most it will show you. Of course all the rows will be imported.
As i tried all avenues with no success, i tried converting the excel file in to a tab delimited text and tried the import. It worked superb..
you could use two data sources to load the data then join them together as explained in this Post

Resources