worksheet-function

Maximum values per day from data with different dates

╄→гoц情女王★ 提交于 2019-12-11 10:43:55
问题 I have data taken at different times on different days, for example: dateTimeRead(YYYY-MM-DD HH-mm-ss) rain_value(mm) air_pressure(hPa) 1/2/2015 0:00 0 941.5675 1/2/2015 0:15 0 941.4625 1/2/2015 0:30 0 941.3 1/2/2015 0:45 0 941.2725 1/2/2015 1:00 0.2 941.12 1/2/2015 1:15 0 940.8625 1/2/2015 1:30 0 940.7575 1/2/2015 1:45 0 940.6075 1/2/2015 2:00 0 940.545 1/2/2015 2:15 0 940.27 1/2/2015 2:30 0 940.2125 1/2/2015 16:15 0 940.625 1/2/2015 16:30 0 940.69 1/2/2015 16:45 0 940.6175 1/2/2015 17:00 0

Excel help on combination of Index - match and sumifs?

房东的猫 提交于 2019-12-11 07:57:43
问题 I have these three tables as shown in this image below: SalesOrderTable, OrderAdjustmentTable, and TotalSalesTable. SalesOrderTable Each order number in the SalesOrderTable represent an order number for a product from the same invoice. It has A,B, or C if an invoice is made for more than one product, but not if it is only made for one product. E.g.: Order 1703 has two products, so it has A and B at the end of each order number. Order 1704 has an order for Apple only, so it doesn’t have any

Excel function to Auto-Populate value in Column C based on the combination of values in column A and Column B

﹥>﹥吖頭↗ 提交于 2019-12-11 07:27:35
问题 I have 3 columns with values filled in already in my metasheet. A combination of values in column A and column B makes the selection unique. I need to pull/return the value in column C for the values selected in columns A & B. for example: In sheet 1, I have the following data: country Month weather 1 USA Jan winter 2 USA Feb fall 3 USA May summer 4 China Jan summer 5 China Feb spring 6 China May fall 7 India Jan fall 8 India Feb summer 9 India May Rain Now, say for a random row 25, I have

How do you find matching numbers in column in Excel? [closed]

放肆的年华 提交于 2019-12-11 05:06:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have A and B columns in Excel, if the number is in both the columns, I want to write note "Exist" in columns C automatically, in the row that the value appears in column B. Example: A | B | C 1 | 2 | Not Exist 3 | 4 | Not Exist 5 | 1 | Exist 6 | 7 | Not Exist 回答1: Use the simple formula COUNTIF Put this in C1

“Worksheet_Change” overwrites relocated rows and cannot handle gaps between columns

为君一笑 提交于 2019-12-11 04:22:15
问题 I want to write a piece of VBA code in Sheet1 which reacts to changes made in a drop-down list in Excel. For now, I have written the following code where Zeile = Row and every relevant entry in the drop-down list can be found within the range of K7:K1007 . When set to C (= Completed), the respective row shall be relocated to another sheet, called Completed Items . Private Sub Worksheet_Change(ByVal Target As Range) Dim Zeile As Long Set Target = Intersect(Target, Range("K7:K1007")) If Target

How to apply MATCH() function in VBA?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 00:41:06
问题 I am trying to run the code below but get Error 1004: Unable to get the Match property of the WorksheetFunction class. I understand if there is no match, MATCH() function returns #N/A , so there is no point to assign this to the INDEX variable (moreover, I think it might also cause an error). How can I account for this possibility? Sub Debugging() Workbooks("Problem.xls").Worksheets(1).Activate Cash_Rows = 5 Share_Rows = 6 If Cash_Rows <= Share_Rows Then Range("A1:A" & Cash_Rows).Select With

Query a closed workbook without opening it

拈花ヽ惹草 提交于 2019-12-10 18:56:55
问题 I'm searching for a string within a column of a closed Excel workbook. The following code gives a type mismatch error on MsgBox. If I replace that line with ret = "'" & wbPath & "[" & wbName & "]" & wsName & "'!" & Range("C3015").Address(True, True, -4150) then the macro gives me a hard-coded value (in this case, the value at cell C3015). How can I search for other values within columns of closed workbooks, without opening them? Dim wbName As String, wbPath As String, wsName As String wbPath

VLOOKUP giving #N/A and I have no idea why

瘦欲@ 提交于 2019-12-10 18:49:30
问题 Why doesn't this work? I tried checking for whitespace, made sure length was the same, etc. Driving me nuts! I just want Alabama! The error given is "Value not available". 回答1: The usual solution is to apply =MATCH to find the row number in the array: =MATCH(D1,B:B,0) will search for the value in D1 in ColumnB (the last 0 means exactly) and hopefully return 2 (the second row in the chosen array - ie the whole of ColumnB). This can then be fed into: =INDEX(A:A,MATCH(D1,B:B,0)) where it becomes

excel function to get value of another cell

空扰寡人 提交于 2019-12-10 18:10:23
问题 Image describing the problem http://img215.imageshack.us/img215/3725/20100314235127schedule2.jpg I hope the image above can explain what I need. :) Problem 1: Get the date where it is the first value in the row Problem 2: Get the date where the value is 100 I would also attach the actual excel file, but I am limited to posting only 1 link. 回答1: Function for left blue cell: =IF(COUNTIF(L11:BJ11,">0"),INDEX($L$2:$BJ$2,MATCH(TRUE,INDEX(L11:BJ11>0,0),0)),"") Function for right blue cell: =IF

Array Constants in Excel

社会主义新天地 提交于 2019-12-10 10:26:07
问题 I have an array constant defined in cell A1 as {1,2,3}. This displays as "1" (the first value in the array). I would like to have the formula SUM(A1) return 6. However, SUM is using A1 as a single-celled array, rather than the array constant contained inside A1 - and therefore SUM(A1) returns 1. Likewise, I would expect AVERAGE(A1) returns 1 instead of 2. So simply speaking, how do I get SUM(A1) to return the same value as SUM({1,2,3})? I don't want to make the array constant a named