excel-2010

Use formula in custom calculated field in Pivot Table

坚强是说给别人听的谎言 提交于 2019-11-29 01:53:00
In Excel Pivot table report there is possibility for user intervention by inserting "Calculated Field" so that user can further manipulate the report. This seems like best approach compared to using formula on Pivot table data, outside the Pivot table, for many obvious reasons. "Calculated Field" dialog, looks like this: and while it's easy to do calculation between available variables (as shown in screenshot) I can't find how to reference range of values for any of available variables. For example, if for some reason I want to center the data in range A1:A100 I'd use = A1 - AVERAGE(A1:A100)

Setting all Excel sheets at a defined zoom level

别等时光非礼了梦想. 提交于 2019-11-29 01:48:06
问题 I have more than twenty sheets in an Excel workbook (file). Is there some code snippet or a command I could apply/use so that all sheets could be reset to let's say 85% zoom level? 回答1: Sub SetZoom() Dim ws As Worksheet For Each ws In Worksheets ws.Select ActiveWindow.Zoom = 85 //change as per your requirements Next ws End Sub BTW, if you simply select all worksheets in your workbook using the tabs you can then set the zoom to 85% and it will apply to all worksheets 回答2: Sub SetZoom() Dim ws

Function Similar to importxml in Excel?

元气小坏坏 提交于 2019-11-29 00:41:16
I love using Google Docs function =importxml() but would love to know if there was anything like it in Excel 2010? I cant seem to find a way for the program to automatically pull data from a linked XML file. For example, I would love to be able to set up a column with the header "Item Name", then have the next column append the user-entered item name in the previous column to this url http://util.eveuniversity.org/xml/itemLookup.php?name= and then parse the resulting XML file to return the type ID. This is accomplished in google docs using =importxml(concatenate("http://util.eveuniversity.org

pull data from website using VBA excel multiple classname

南笙酒味 提交于 2019-11-29 00:38:35
I know this has been asked many times, but haven't seen a clear answer for looping thru a div and findind tags with the same classname. My first question: If I have something like this: <div id="carousel"> <div id="images"> <div class="imageElement"> <img src="img/image1.jpg"> </div> <div class="imageElement"> <img src="img/image2.jpg"> </div> <div class="imageElement"> <img src="img/image3.jpg"> </div> </div> </div> So I want to get all the img Src in the div "images" along with other stuff in the imageElement classnames and copy them to some cells in excel. Second question: I've seen two

automate submitting a post form that is on a website with vba and xmlhttp

本秂侑毒 提交于 2019-11-28 22:09:37
I'm using xmlhttp via vba in excel 2010. I need to programmatically add an item to a shopping cart on a website. I have the code below so far, it uses the POST method A couple of things I think are wrong with my code but not sure how to fix - It doesn't show where the form is that is being submitted. Here is that url: http://www.craft-e-corner.com/p-2688-new-testament-cricut-cartridge.aspx The url I entered as the url that processes the form is the url in the "action=" part of "form". How can I verify that the form posted? Sub post_frm() Dim xmlhttp As Object Set xmlhttp = CreateObject("MSXML2

Table in Excel from SQL Server stored procedure with parameter field in workbook

岁酱吖の 提交于 2019-11-28 18:54:49
I need to create a dynamic report using Excel 2010 and SQL Server. Going off of previous ones created by others I figured out how to create the data connection and use the stored procedure with a specific parameter in the connection properties definition tab. The other reports use a ? in the command definition and use a cell in the workbook to define the parameter. How do I do that too? Specific steps to creating the connection/report/parameter selection or any help much appreciated. I got it to work using the steps provided at the following linked blog post. http://codebyjoshua.blogspot.com

Using VBA to prompt user to select cells (possibly on different sheet) [duplicate]

落花浮王杯 提交于 2019-11-28 18:54:10
This question already has an answer here: VBA Dialog box to select range in different workbook 1 answer How to generate the range selection dialog box using vba in Excel? 2 answers I'm working in Excel on a VBA project, and want part of my macro to prompt the user to select a range of cells*, which the macro can later do stuff with. *The type of prompt you get when creating a chart, or using a GUI to insert a function e.g. here: and here: I'm therefor looking for something along the lines of Sub MyMacro() MsgBox "Please select data range" ' allow user to select range (as images above)

Count number of times a date occurs and make a graph out of it [closed]

岁酱吖の 提交于 2019-11-28 17:20:32
问题 I have a list of dates, each date in it can occur more than once. I want to count the number of times each date occurs (histogram) and display it in a graph (with the Y axis being the number of times the date occurs and the X axis being the date itself)? Sample list: 19/05/2012 19/05/2012 19/05/2012 17/05/2012 17/05/2012 16/05/2012 16/05/2012 16/05/2012 16/05/2012 15/05/2012 15/05/2012 15/05/2012 15/05/2012 12/05/2012 12/05/2012 12/05/2012 7/05/2012 回答1: The simplest is to do a PivotChart.

Number format in excel: Showing % value without multiplying with 100

风流意气都作罢 提交于 2019-11-28 16:46:14
问题 When I set format of a cell as %, it automatically multiply the value with 100 & show the value. So 5.66 becomes 566 % . I want to apply % format on a column but want to keep the values same as before. I just want % sign to be shown along with the value. To achieve this, I used following format 0.00##\% Now I want to show negavtive values in RED color without '-' sign(negative) and the values should be wrapped in brackets. so -5.66 should be shown as (5.66%) in red color. Please help 回答1: You

(VBA or Formula) to open hyperlink from a cell and save/rename downloaded file from new cell value

馋奶兔 提交于 2019-11-28 14:31:24
Program: Excel 2010 Experience Level: Basic Question: I have a table of links, I want to open each link (they are .csv/.xlsx files on a secure server which I have to login to), then saveas with a file name generated by a 3rd row of information Column (C) to keep the BatchID intact (as below). | A | B | C | | Batch Date | links | New name | |------------|--------------|----------| | 3/03/2014 | View | 20140303 | | 2/05/2014 | View | 20140205 | | 1/02/2014 | View | 20140102 | | 12/01/2013 | View | 20131201 | | 11/01/2013 | View | 20131101 | | 10/01/2013 | View | 20131001 | | 9/01/2013 | View |