Pasting from SQL Server 2014 to Excel 2013 - excel

My work machine was just upgraded to Excel 2013 add I can no longer paste results from SQL Server to Excel 2013. It just turns into a long text string that I can't break apart even with text to columns. I'm not sure if it's a setting in SQL Server or Excel, but any help would be appreciated.

You can export the data by right clicking in the top left corner of the results window and selecting Select All, then selecting Copy With Headers, then pasting into Excel.
You can also Select All, then Save Results As and save it as a CSV file, then convert it to an Excel file.
The second option works best for me when the data set becomes more than a few hundred thousand rows/records.

Related

Excel Pasting SQL Server Results Set Only Into Column A

I am experiencing issues trying to paste a SQL Server SSMS results set into Excel using Copy and Paste. When I try to paste into a spread sheet all of the values go into the first column.
After searching the web for cause and solution to this problem, I thought I would post my findings to see if it could help someone else. Earlier in the day I had been opening some pipe-delimited files using Excel and its Text-To-Columns function on the Data tab of Excel in the most recent version of Office 365. Later I needed to paste the results of a SQL Server query from the grid into a spreadsheet and it would paste it only into the cells in Column A. After several attempts (restarting SSMS and Excel) with no change in results, I pasted the results set into Notepad++. After turning on the White Space characters I noticed the the results appeared to be Tab-Delimited. Next, I pasted the results into Excel. Again they went into the cells in Column A. I then used Text-To-Columns (using Tab as the delimiter) to get the data into columns appropriately. After that I had no problems pasting results from SSMS into Excel. It seems that Excel caches the Text-To-Columns settings from one spreadsheet to the next.

Microsoft Excel 2019 not responding

I am using MS Office 2019. I have an excel file of 3,776 KB. It takes so much time to open and once it is open it hangs a lot. If I try to select the cell to edit it says "not responding". I have another file of 1126 KB and it is working fine.
I have tried quick repair but it doesn't help. File contains only text which is written in urdu font.
Is the file larger than you think? Once the file has opened use the keys "Control + end" to jump to the bottom right of the used area of the spreadsheet. You may find this is larger than the area that you have actually got data in. If data is accidentally entered into a cell at the bottom of the spreadsheet Excel will create every cell down to that spot, and they hang around even if the data is subsequentially deleted. If that is your problem you will need to delete the faulty rows and then resave and reload the spreadsheet to get rid of them. This should reduce the size and thus improve the responses of the workbook.

Excel 2016 Chart Axis-X not showing the correctly

I have a Excel file (.xlsm type) contains lot of Charts. After switch to Excel 2016, certain charts not showing Label correctly (axis-x).
Eg. It suppose showing WK10'17, WK11'17, WK12'17,...
but it showing 1,2,3,4,....
1) I tried to reselect the data, then the label showing correctly, but after save and reopen, it become 1,2,3,4.... again
2) also tried delete the existing chart, and create a new one in Excel 2010 & 2016, problem not solve.
3) Axis Type have been set as Text
Is this a bug in Excel 2016 ? Did anyone have a solution for this ?
Below Chart showing 1,2,3,4,..., which is wrong.
Below chart is showing correctly.
Below are my table look like
1st Experiment:
Firstly, I create a whole new file in Excel 2016. Then do below step:
- Create 4 Indicators for performance review, with dummy data
- Create new chart and format it
- Create simple VBA code to hide everything, and only show related Indicator that selected
Everything work just fine, even switching around the indicator many times.
Later, Close it and reopen, 3 out of 4 charts having Axis-x label became 1,2,3,...
2nd Experiment:
I created Whole new file in Excel 2010, with 4 indicators and same VBA code.
Then Close and reopen, Axis-x format remain Perfectly good.
Transfer the file into Excel 2016 machine. Close and reopen, the Axis-x became 1,2,3....
*** Current Excel Version 1705 (Build 8201.2075)
*** Attach with these experiment files
4Q Demo.zip
Appreciate, who got interested into this issue, have a look on my file.
Share with me, if you do have any solution for that. Thanks
I found out as long as the Chart is not hide, then the axis-x will remain correctly. But this do not really help, when hiding additional chart is a must.
Another temporary workaround method is :
1) moving the data table to another worksheet.
2) Then the set the Chart's data range to another worksheet (Cannot be the same worksheet with Chart).
That will work perfectly, now can hide the chart while maintain axis-x correctly.
**** Only drawback, table have to move or duplicate into another worksheet
**** Probably Microsoft will solve this after Version 1705 (Build 8201.2075)

Pasting Excel tables in Thunderbird e-mail client

When I paste an Excel table in Thunderbird e-mail client (ver 24.2.0) the table looses its formatting. One workaround seems to be that you paste the table from Excel to Word and then paste it in Thunderbird. But this seems a bit odd as Word and Excel are part of the same Office Suite of applications, yet their behavior is strange.
Can anybody shed any light on it?
Copy from Excel,
Paste into word -> Paste Options -> Keep Source formatting,
then highlight the table, Go to Design -> on the right, Increase the "Line Weight" to a minimum of 1 point, then click on "Borders" and select "All Borders"
Now copy this table and paste it in your Email. It should work.
The fastest way to copy excel tables as they are, in Thunderbird is to first copy the table to Word, and then recopy and paste within html email.
Colors, lines, format are kept as they are...
Another workaround you can do entirely within Excel is copy the cells for your table, pasted as a picture in Excel and then copy/cut the picture from Excel and then paste to Thunderbird. You lose the ability to edit in place in Thunderbird, and increase the size of the email but you keep all the formatting from Excel.
So far,the best solution is paste the table into Word and then copy from there.
This is a bug from 2003 Reference Link,but didn‘t fix it.
Paste the table as it is in mail from excel, then go to
Format --> Table --> Table Properties
In Borders & Spacing, keep the Borders as- 1 or 2 pixels.
It is working 100%
This is a bug in thunderbird. I overcome this by using LibreOffice (or open office) spreadsheet. Formatting is not lost when we copy from Libreoffice Calc. Thunderbird development is a bit lousy :-). Keeping this bug open for long time.
try to use "Text To column" function under the "DATA" TAB
it will make the column suitable to be pasted as a text

Excel and Tab Delimited Files Question

I am encountering what I believe to be a strange issue with Excel (in this case, Excel 2007, but maybe also Excel 2003, but don't have access to it as I write this).
I can reliably convert some server data over into a tab-delimited format (been doing this for years) and then open it using Excel - no issue.
However, what seems to be happening is if I have an html <table> inside one of the fields, it looks like Excel 2007 thinks it should be converting the table into rows and columns inside Excel (not what I want). As you might imagine, this throws off the entire spreadsheet.
So question is, is there any way to set up excel to NOT do this (perhaps some setting in Excel that pertains to reading tab delimited files), or am I missing something?
Thanks.
Save your file as .txt
Now open the file in excel using Drag and Drop (rather than double clicking your hookey .xls)
Slightly more work to open the file, but your tab text formatting will now be respected.
When you open the tab-delimited file, you are shown an import mapping dialog that lets you pick each columns' data type (date, text, currency, etc.). For the columns that have HTML data present, choose text. This will tell it basically to import as-is and not try to automatically parse the data into a derived format.
Excel 2003 does the same. I don't think there is a way to do it with a config because Excel finds delimiters in the html table and breaks the html in cells and columns as it does for the other columns.
If the column containing html is always the same, you can use JYelton suggestion of renaming the file as csv and record a small VBA macro to load the file selecting automatically the html column as text in the import mapping dialog and you load the file calling the macro instead of double-clicking on the file.
If nothing else, import it into OpenOffice.org Calc, save as an .xls file, then open in Excel.

Resources