excel-2010

Pivottable woes

一世执手 提交于 2019-12-20 03:31:24
问题 It seems like all of the examples from other people are just like what I already have in my code. But in my case, nothing resolves the problem. So here is the complete code along with a break to show where I am having a problem: Sub CreatePivot() ' Define RngTarget and RngSource as Range type variables Dim RngTarget As Range Dim RngSource As Range Dim intLastCol As Integer Dim intLCPivot As Integer Dim intLRPivot As Integer Dim intCntrCol As Integer Dim intX, intY As Integer Dim ws1, ws2 As

Wrong cell when conditional formatting with values

半城伤御伤魂 提交于 2019-12-20 03:14:01
问题 I regularly encounter an issue on Excel 2010 when I create a new rule using a formula. The issue is reproducible on several of my computers. I select several cells (for instance A4:B143) and then create a new rule using one of the following formulas: =$A4="issue" =($A4="issue") then press Enter. The goal is, of course, to see all the rows of which the first cell's value is "issue". But this does not work and when I go to "manage rules", I see that Excel has the following formula: =$A1048441=

EPPlus, handling big ExcelWorksheet

三世轮回 提交于 2019-12-20 03:09:31
问题 I'm using EPPlus to create xls report on daily and weekly basis. But sometimes the timeline is greater than one year and, in my last case it was three year, so the total amount of rows are around 180k. In this case I've optimized the query against a SQL Server DB but I think that my bottle neck is the "ExcelWorksheet" object: I'm guessing if there's chance to save it on file 50k rows per times instead of save it totally, so the memory usage could be less than now. Anyone has an idea about an

Precise process event timeline diagrams (e.g. in Excel)

纵然是瞬间 提交于 2019-12-20 02:36:52
问题 I need to prepare such diagrams: I think it's quite intuitive how to read this diagram and this is why I want to create a few of them for my project. I am quite confused how to create them efficiently; I've painted the one above in Paint just to quickly visualize my idea and it took too long imo. Moreover the time axis is not accurate. I have precise data with event times (eg. loading start in process 1 , loading end in process 1 , algorithm start in process 2 etc.) e.g. Process 1: 00.0 - 40

Excel Connectivity with SSAS - An error was encountered in the transport layer

爷,独闯天下 提交于 2019-12-20 02:13:52
问题 I have a SSAS Cube in SQL 2012 to which I can connect from Excel 2010 without an issue using a windows user credentials. However whenever I restart the server hosting the cube and I try to refresh the pivot in the excel (in a client machine) it throws and an error saying " An error was encountered in the transport layer ". I am then prompted to re-enter the password for the windows account I am using to connect to the data source. The problem is that if I have couple of pivots open in

F# Excel Range.Sort Fails or Rearranges Columns

允我心安 提交于 2019-12-20 01:39:57
问题 I have two cases. The preliminary code: open Microsoft.Office.Interop.Excel let xl = ApplicationClass() xl.Workbooks.OpenText(fileName...) let wb = xl.Workbooks.Item(1) let ws = wb.ActiveSheet :?> Worksheet let rows = string ws.UsedRange.Rows.Count First, I try the following to sort: ws.Sort.SortFields.Clear() ws.Sort.SortFields.Add(xl.Range("A8:A" + rows), XlSortOn.xlSortOnValues, XlSortOrder.xlAscending, XlSortDataOption.xlSortNormal) |> ignore ws.Sort.SortFields.Add(xl.Range("H8:H" + rows)

How to consume web API with authentication in Excel 2010

我只是一个虾纸丫 提交于 2019-12-19 11:25:54
问题 I have an exmaple of mvc 4 web API , and I want to consume it in Excel 2010. whats the easiest way to do it? I am thinking to pass in the username and password as string parameter if solution need to be complicated. [Authorize] public class AccountBalanceApiController : ApiController { //http://localhost/FTAccounting/api/AccountBalanceApi?companyId=16&fiscalYear=2012 public Dictionary<int, TrialBalanceAccountSummaryModel> Get(int companyId, int fiscalYear) { return AccountBalance

count unique text values based on condition in another column between date criteria

偶尔善良 提交于 2019-12-19 10:06:23
问题 What i need is formula to count unique values in TITLE based on criteria of column FIAP/Medium & Year. This needs to begin by looking at the date in worksheet column M/Year, the range is 23/03/13 - 01/06/16 . It then needs to check column I/FIAP Medium looking for 'Digital ' and finally count the unique images in A/Title. This is the working sheet column Title FIAP/Medium Year Conors Push Digital 3/23/2013 Conors Push Digital 4/1/2013 Flippin Hell Digital 4/1/2013 Narrowing the Gap Digital 4

Date for Previous Monday Excel

十年热恋 提交于 2019-12-19 09:56:44
问题 Today is 02/27/2013 which is Wensday. I need formula which will return me date for previous Monday.which would be (02/17/2013) I need to so I can use for file name or email subject in my vba code which sends emails. With oMail 'Uncomment the line below to hard code a recipient .To = "myemail@email.com" 'Uncomment the line below to hard code a subject .Subject = "Current Report" .Attachments.Add WB.FullName .Display End With 回答1: Public Function LastMonday(pdat As Date) As Date LastMonday =

Add totals line to pivot chart in Excel 2010

流过昼夜 提交于 2019-12-19 09:18:16
问题 I have a very simple pivot table that basically sums the hours of all the data records and pivots them with month as a row label and billable/non-billable as a column label. The pivot table actually shows a totals column which is the sum of billable hours and non-billable hours by month. I created a pivot chart to represent the data, and it includes lines for billable hours and non-billable hours, but for some reason I can't get a third line to show the total hours. The numbers exist in my