excel-2010

Formula to find matching row value based on cells in multiple columns

ぐ巨炮叔叔 提交于 2019-12-23 13:22:15
问题 I am trying to lookup a col4 value when, in the same row, col1, col2 and col3 each match. I referenced this SO Post as it is a similar question but that solution is not working for me. I am searching for specific Source s, on specific Date s, with specific Status s and want to return the corresponding Count s. My data with examples of output required: 回答1: May not be preferred approach and might not even give the correct answer but for anyone new to PivotTables the sooner they are comfortable

getting error “Object Variable or With block variable not set”

為{幸葍}努か 提交于 2019-12-23 12:32:59
问题 I have created an Add-In for Excel which determines the name of ActiveSheet and ActiveWorkbook . The code I used is below. When I run the Add-In it is showing the above mentioned error after the message box "variables set". But when I run it in macros it is working fine. I don't understand what is happening with the Add-In. Could anyone help me with this? Sub sheetvalues() Dim bk As Workbook, sht1 As Worksheet, sht2 As Worksheet, sht3 As Worksheet Dim book As String, sht As String, i As

Speed Up Working With Comments in Excel VBA

守給你的承諾、 提交于 2019-12-23 12:13:09
问题 This is an example I contrived, I created this to explain the problem I'm having. Basically I want this code to run faster than it does. On a new sheet each loop of a cell starts fast, but if you let it run to near completion, and then run it again, it will hit 100ms per cell. In my sheet I have 16000 cells with a lot of comments like this, and they are manipulated individually every time the code runs. In this example they are obviously all the same, but in the real application each one is

VBA: VLookUp Multiple Results

你说的曾经没有我的故事 提交于 2019-12-23 12:12:40
问题 I require a little help with some code. I am trying to perform a VLookup, and has the data displayed in columns O, P and Q. What i am trying to do is loop though sheet("Global") column A starting at row 3 until last used row. It needs to match data in sheet("Details") in column A starting at row 2. So when it finds a matching value, it will display the results from "Details" C2 in "Global" O2, "Details" I2 in "Global" P2 and "Details" G2 in "Global" Q2. It then needs to loop though "Global"

How to change font properties of chart axes

好久不见. 提交于 2019-12-23 11:51:04
问题 How do I change the font properties of chart axes in Excel 2007 & 2010? NOT the axis title ; that one's easy. I'm asking about the font of the axis itelf. It records equivalent to this in Excel 2010: shEditSizeScales.ChartObjects("MyChart").Chart.Axes(xlCategory).Format.TextFrame2.TextRange.Font.Size=12 But I get an error on that, and I don't see anything past TextFrame2 in the Watch pane. Even if I step through the recorded code, it gives me the same error. I've looked through the object

Microsoft Excel Can't insert new cells

╄→尐↘猪︶ㄣ 提交于 2019-12-23 09:09:18
问题 I am receiving an error saying: Microsoft Excel can't insert new cells because it would push non empty cells off the end of the worksheet. This happens when I try to insert a new row of data. I need to keep all of the data on the sheet I already have. I only have 56 rows, so I think I should be able to add more... 回答1: Excel has a limited number of rows and columns (which varies with version). To find your last cell with data in it, click on any cell and then press Ctrl + End . This will then

Excel Q - SUMIFS with a 2 dimensional array

给你一囗甜甜゛ 提交于 2019-12-23 08:55:48
问题 I have a 2-D array: dates on a horizontal axis and identification numbers on a vertical axis. I want the sums conditioned on a particular date and ID, and I want to know how to do this using SUMIFS. For some reason, it seems like I cannot since the array is 2-D while the criteria ranges are 1-D. Can anyone give me any advice on other formulas I can use? In other words, I would like to add the values that satisfy the ID and date I select; there is one or more data point that satisfies the

Using CONCATENATE in the validation source field to refer to a named table

拜拜、爱过 提交于 2019-12-23 06:04:54
问题 My question originates from a task I have been given that has had me stumped. I have been given a large tree structure that I need to turn into a series of dependant dropdown (or something similar). The end goal is to form a means of user input in an excel spread sheet. I am using Excel 2010 and as such would prefer to avoid VBA. So far I've managed to cut down the number of lists by using a drop down for the first two generations in the tree and then two successive vlookups. The next

For loops being skipped without cause in VBA

邮差的信 提交于 2019-12-23 02:20:31
问题 My code, as written, works for all the ways I've tested it. I have two questions though. First, Why in the blue blazes do I HAVE to use Do While loops instead of For loops in my code? I've searched Everywhere I can to help me on this issue. I can't reinstall excel, but I've reset as many of the settings as I can, but, invariably, the compiler skips over every for loop I have that isn't a for each loop... Except the first for loop in my programming... It is the weirdest and most bizarre

Compare two Columns and format matching cells with different colors

狂风中的少年 提交于 2019-12-22 23:26:07
问题 I would appreciate your help with the following: I would like to compare two columns, let us say Column A and Column B, **looking for duplicates**. If a value in Column A has a match value in Column B, I would like to format the cells of the same duplicate value with the color (the colors are random and different for each match). This is if `A12 = B30`, the color will be red. And if `A20 = B1`, the color is green and so on. If there is no match just leave it as it. That was only an example