Move data from Excel to Word and reformat it - excel

is there a way to move the data from an excel sheet to a word document and reformat it. I'd like the data in the first column to be formatted as 'Heading1' and the data in the second column to be formatted as 'Normal'.
So that every row results in a header and a content, but without a table itself.

Depending on the Office file formats, you may be able to do an XML XSLT transform.

Related

Generate a table in word using excel data

Data in this list is required to be formatted in a table in MS Word so I can make a simple catalog with similar to this I have a long list of items so I need a faster and easier way to prepare the catalog, I intend to save it as a PDF afterwards, by placing company logo in page header. Any easier way to do this without having to pay for a catalog service is much appreciated
You can simply take the whole table from excel to word by selecting the whole table in excel then copying it and pasting it in the word file.
Another way is to create a table in the word file having exact number of rows and columns in your excel table. And than pasting the excel table data to the word table.
I hope this helps you.

Convert excel 1 column to multiple csv column

I have question
There are excel data like this
input file
More than 500 person
I wanna convert data to csv
expected csv result
The data age is not 100% the second row, some may be third row. Name can be duplicate data.
I’m really confused. Can i use excel feature to do this or any way like coding?
I upload file : https://ufile.io/rxe1l
Add name, age, add etc as column in excel and export as .csv.
In your Excel workbook, switch to the File tab, and then click Save As. Alternatively, you can press F12 to open the same Save As dialog.
In the Save as type box, choose to save your Excel file as CSV (Comma delimited).
Please simply follow this link conversation excel into csv

Add dummy single row into the first row of excel file in SSIS

I receive excel file every week. Suppose it has following columns:
Cust_Name(string), Cust_Id(int), Cust_filename(string),description(string/Unicode string/ Unicode text stream), explanation(String/Unicode string/ Unicode text stream).....
I am facing problem with column data types. SSIS excel source is considering same column data type as string, sometimes as Unicode string and sometimes as Unicode Text stream based on underlying excel data.
So what I want to do is to add dummy row which contains Unicode Text stream data and insert it to 1st row of excel using script component. So that when I read that excel, SSIS excel source will automatically detect those columns as Unicode Text stream every time and later on using Data Conversion I can convert some columns into appropriate data types.
I want to know how can I insert dummy text row into first row of excel. Existing column data will be followed by that dummy row data.
Goal:
1) Get the excel file,
2) Read excel & Add dummy "text" row into the first row & save to some other name using SSIS source script component.
In excel connection manager uncheck the box which says read the first row as header row. Also add IMEX=1 in connection string. This will add the headers as dummy row and do the job..
Let me know if this works

I need to pull specific cells from a single excel file to create a single row in SSIS

I'm provided with a folder of excel files. Each represent one form with data entered in specific cells. Each file is of the same format and each would for ONE row of information to be imported into my sql server database.
I believe I can loop through each excel file in the folder, however I am having issues finding the right tools to extract these specific cells and merge them into a single row to insert into the table.
Power Query to the rescue! :)
http://excelunplugged.com/2015/02/10/get-data-from-folder-in-power-query/
Ended up writing some VBA instead to move the data into a tabular / List form in one excel sheet then used that Document to feed SSIS. So far, does not seem like SSIS can do that initial part.

Different results exporting to CSV or Excel

I have a simple report that I want to export to a CSV file. There is only the detail line that is grouped by one field, no group header, and a group footer for totals. The problem is when I export to CSV format, the total row for a group is listed in front of every record?
If I export to Excel and then save as a CSV file, the total row is where it belongs. However one field is spread across 3 columns then those columns are "merged and centered" which adds two commas in the middle of the line. And one column is added at the beginning of the record and two at the end of the record, for 3 more extra commas.
It would be easy enough to write a macro to "clean up" the spread sheet and export as a csv file for my end users. However corporate "insecurity" will not allow the end users to have macros.
Any help, suggestions, pointers to where else to look greatly appreciated.
cheers
bob
The CSV generated by any standard reporting tool does a flat data structure and hence would repeat all data set.
The XLS generated by the reproting tools are typically to be opened in the XLS and its XLS default behaviour to put additional commas for every merged cell.
The best way is to create a report with a layout that has equal data length columns even for the header, ie while formatting the report do not put the header in the center with larger lenght, bold and italics etc, put it as the first column and match the lenght with the data in the detail record.
This way you would be able to create a report that does not look presentable in XLS but would give you required data in the CSV

Resources