excel-2010

Export a simple Dictionary into Excel file in python

感情迁移 提交于 2019-12-05 02:00:07
问题 I am new to python. I have a simple dictionary for which the key and values are as follows dict1 = {"number of storage arrays": 45, "number of ports":2390,......} i need to get them in a excel sheet as follows number of storage arrays 45 number of ports 2390 I have a very big dictionary. 回答1: Sassikant, This will open a file named output.csv and output the contents of your dictionary into a spreadsheet. The first column will have the key, the second the value. import csv with open('output.csv

Convert JSON Date To MM/DD/YYYY Format?

帅比萌擦擦* 提交于 2019-12-05 01:40:37
问题 My client receives a spreadsheet with a number of columns, one being a "date". Only the date turns out to be formatted as Date(1292291582263-0700) (a JSON date it seems). I need to convert and work with this JSON date in MM/DD/YYYY format, elsewhere in this spreadsheet's code (VBA). Does anyone know how to parse and convert this JSON date format into a MM/DD/YYYY format? I have read lots of solutions on SO that are in Javascript, C#, or ASP.NET, etc but all I have to work with is Excel 2010

wrong PDF output size with ExportAsFixedFormat in Excel VBA

你离开我真会死。 提交于 2019-12-05 01:05:37
问题 I use Excel 2010 with VBA. I have the following code : mySh.PageSetup.PaperSize = xlPaperLetter mySh.ExportAsFixedFormat Type:=xlTypePDF, _ Filename:=filePathTmp, _ Quality:=xlQualityStandard, IncludeDocProperties:=False, _ IgnorePrintAreas:=False, OpenAfterPublish:=False It generates a PDF without error but the size is not correct. I get a 22.26 x 28.80 cm instead of the 21.59 x 27.94 cm that I would like to obtain. Any ideas ? Thanks for your help 回答1: I use Excel 2010 and had this problem.

How do you figure out the MEDIAN of a column taking into account filters?

丶灬走出姿态 提交于 2019-12-05 00:41:28
I've recently discovered that you can use SUBTOTAL for various functions which allow you to sum up or find totals of a column, even whilst there are filters being applied to it. However, the list of functions SUBTOTAL has does not include MEDIAN . Is it possible to find the median of a column of numbers taking into that some rows have filtered out? Updated to pick up comments from lori_m below 1. Original answer - all xl versions Courtesy of Aladin Akyurek from this solution If your data was in A1:A10, array enter this formula with shift ctrl enter =MEDIAN(IF(SUBTOTAL(3,OFFSET(A1:A10,ROW(A1

MS Excel do not copy the color theme automatically

两盒软妹~` 提交于 2019-12-04 21:07:44
I am using MS Excel 2010 My Company uses a set of standard color scheme / theme for MS Excel 2010 .I gave it a name (companycolor). I have a template contains that color scheme and a macro in it to perform tasks. When I press macro button it makes a copy of activesheet,protect it and email it to intended recipient.Problem is that when macro makes a copy of activesheet into a new workbook it doesn't copy the color scheme / theme that template have, I mean with the my company color scheme (companycolor) due to which all cells color, color of charts and shapes get disturbed and changed according

How to insert data directly from Excel to Oracle Database

守給你的承諾、 提交于 2019-12-04 20:17:06
I would like to know how to insert data from Excel to Oracle meaning lets say i have a worksheet full of data and i want to insert them all into Oracle database. how do i do that? thanks in advance. Try creating Insert query in Excel(if data is not that huge): like : in AA1 cell write : 'INSERT INTO <TABLE> VALUES(' then respective values from different cells(i.e. 'A1,'+'B1,'...+')') it will create Insert scripts in excel. Just copy the scripts and execute. these are sample queries, plz write your own queries according to your requirement for INSERT STATEMENT. Many Oracle IDEs offer this

Check for day range and no

喜你入骨 提交于 2019-12-04 19:57:28
I have the following data sheet: As you can see I have a date and a no which is a string. Now I want to filter out all dates which have the same number in a +-20 day intervall around the date. So for example: If the 12.2.2014 has the value a then it gets a 1 and if the 3.2.2014 has the value a it gets also a 1 . In contrast if the value 15.1.2014 has the value a it gets a 0 because it is not in the +-20 day range . If there exists two rows like in the example below with 10.07.2002 and value d then it gets a 0 because there is no other day in a 20 day intervall around it. My implementation idea

Excel Data Connection errors on Refresh

蹲街弑〆低调 提交于 2019-12-04 18:59:02
问题 Solved! See below for solution! I'm in Excel 2010 connecting to multiple, seperate Access 2010 db's from Excel through PivotTable data connections. Refreshing all my connections causes the final refresh to fail. The order does not matter, I've manually refreshed in different orders, same error. However, if I save and close after refreshing a few, then come back and refresh the last one, there is no problem at all. Leads me to believe that I'm hitting some sort of memory cap that is reset when

Simple way to remove blank cells dynamic dropdown list Excel

拈花ヽ惹草 提交于 2019-12-04 18:18:49
问题 Whenever I do a dependent dynamic drop down list , I see a bunch of blank cell in the drop-down list , I search many topics that explain how to remove them while by adding two additional ranges like explained her http://blog.contextures.com/archives/2014/02/27/dynamic-list-with-blank-cells/ but my question is: Is there anyway to avoid blank cell or remove them using a simple approach without the need of two additional ranges or a complex formula? the drop down list that contains blank cell

Excel VBA printer API, set colour and duplex

断了今生、忘了曾经 提交于 2019-12-04 16:14:18
here's my problem. I am trying to access the printer and change the colour and duplex settings. So far the code I have allows me to change the user preferences of the networked printer. But I have the following two problems below. 1) The codes set's the printer to either simplex or duplex as intended, however is does not set the colour preference correctly! 2) Excel is not automatically picking up the new settings, I still have to go in and manually click the reset button for the new changes to take affect. Here is the code I am using: Private Type PRINTER_INFO_9 pDevmode As Long ' Pointer to