excel-match

Excel / VBA - Index Match function using Dynamic Ranges

只谈情不闲聊 提交于 2019-11-30 07:45:30
How to effectively use an Index/Match formula in VBA? Background: I have a worksheet that relies heavily on the use of a formula that retrieves an output based on matching a specific name to its name range as well as a specific date to its date range. =INDEX(OutputRange,MATCH(1,(Name=NameRange)*(Date=DateRange),FALSE),1) Additionally, there is a hard-coded VBA sub that produces the same output Sub ExampleHardCode() Dim Result As Variant Result = Evaluate("INDEX($C$4:$C$13,MATCH(1,($G$6=$A$4:$A$13)*($G8=$B$4:$B$13),FALSE),1)") ActiveCell.Value = Result End Sub Question: I’d like to produce a

Lookup using INDEX and MATCH with two criteria

核能气质少年 提交于 2019-11-30 07:01:22
问题 I am trying to achieve a basic lookup using INDEX and MATCH. My layout is: Sheet 1 NAME | SITE | DATE Sheet 2 NAME | SITE | DATE I want the 'SITE' column in Sheet 1 to automatically populate with the SITE from Sheet 2 where NAME and DATE match. What I've Tried =INDEX('Sheet2'!B:B,MATCH(A1,'Sheet2'!A:A,0)) This will successfully match NAME, but how can I incorporate an additional MATCH into the formula to match on both NAME and DATE? 回答1: I suggest the conventional solution to problems of this

Excel index match multiple row results

拈花ヽ惹草 提交于 2019-11-29 11:48:06
I'm stuck on an Excel problem and am hoping someone can assist. I read through 10-15 topics that are similar, but I wasn't able to get anything to work. Here is where I'm at... I have a large data set containing columns for Year , Name , Total 1 , Total 2 (and 20+ other columns). The same names appear in multiple rows based on the yearly totals. On a separate sheet, I have another data set containing Name and would like to pull the data from sheet one into columns as shown below. I have done this in the past using only one year as the initial data set with the following formula: =INDEX

Excel / VBA - Index Match function using Dynamic Ranges

时间秒杀一切 提交于 2019-11-29 10:27:04
问题 How to effectively use an Index/Match formula in VBA? Background: I have a worksheet that relies heavily on the use of a formula that retrieves an output based on matching a specific name to its name range as well as a specific date to its date range. =INDEX(OutputRange,MATCH(1,(Name=NameRange)*(Date=DateRange),FALSE),1) Additionally, there is a hard-coded VBA sub that produces the same output Sub ExampleHardCode() Dim Result As Variant Result = Evaluate("INDEX($C$4:$C$13,MATCH(1,($G$6=$A$4:

Return Max Value of range that is determined by an Index & Match lookup

佐手、 提交于 2019-11-29 04:23:31
I need a cell to display the max value of a range who's row is defined by an index and match formula. I know this will be an array function but I'm struggling to get the syntax right. Here is what my data looks like. I have it laid out with Column Letters and Row Numbers like Excel. Using the Table Below as reference, in a second table. When I enter b in cell A1 and y in column B1 , the formula in cell C1 should return the value 35 because 35 is the maximum value in columns C:F on the row determined by A1 and B1 using INDEX and MATCH Table 1. A B C D E F 1 a x 25 6 23 11 2 a y 39 15 42 19 3 b

Lookup using INDEX and MATCH with two criteria

▼魔方 西西 提交于 2019-11-29 02:26:27
I am trying to achieve a basic lookup using INDEX and MATCH. My layout is: Sheet 1 NAME | SITE | DATE Sheet 2 NAME | SITE | DATE I want the 'SITE' column in Sheet 1 to automatically populate with the SITE from Sheet 2 where NAME and DATE match. What I've Tried =INDEX('Sheet2'!B:B,MATCH(A1,'Sheet2'!A:A,0)) This will successfully match NAME, but how can I incorporate an additional MATCH into the formula to match on both NAME and DATE? I suggest the conventional solution to problems of this kind is to concatenate the pair of search terms (ie a helper column) and to add the concatenated pairs to

Excel index match multiple row results

空扰寡人 提交于 2019-11-28 05:09:37
问题 I'm stuck on an Excel problem and am hoping someone can assist. I read through 10-15 topics that are similar, but I wasn't able to get anything to work. Here is where I'm at... I have a large data set containing columns for Year , Name , Total 1 , Total 2 (and 20+ other columns). The same names appear in multiple rows based on the yearly totals. On a separate sheet, I have another data set containing Name and would like to pull the data from sheet one into columns as shown below. I have done

Return Max Value of range that is determined by an Index & Match lookup

不羁岁月 提交于 2019-11-27 18:18:56
问题 I need a cell to display the max value of a range who's row is defined by an index and match formula. I know this will be an array function but I'm struggling to get the syntax right. Here is what my data looks like. I have it laid out with Column Letters and Row Numbers like Excel. Using the Table Below as reference, in a second table. When I enter b in cell A1 and y in column B1 , the formula in cell C1 should return the value 35 because 35 is the maximum value in columns C:F on the row

Comparing two columns, and returning a specific adjacent cell in Excel

半腔热情 提交于 2019-11-27 14:31:34
I am using a combination of if , vlookup , match , iserror functions, and unfortunately I've not been able to find the right formula. Comparing two columns for matches is easy enough. the tough part has been returning a specific cell once a match is found. So what I'm dealing with is something kind of like this: Header Column A Column B Column C Column D Row 1 111 AAA 112 Row 2 222 BBB 111 Row 3 333 CCC 221 Row 4 444 DDD 333 I'm trying to match column values in Column A , with Column C . So if there's match, I want the corresponding value in Column B to populate in Column D . Not a great

If two cells match, return value from third

社会主义新天地 提交于 2019-11-27 01:28:41
Here's a simple explanation of what I'm having trouble with. Column A: List of 2300 order numbers Column B: Email Address associated with an order number Column C: List of 100 specific order numbers that I need the email address for So, I'm looking to search column A for a value that matches C, and return the email address from column B in a new column (D). The current formula almost works, but instead of returning the email address where A matched C, it returns the email address from the same row. =IF(ISERROR(MATCH(C2,A:A,0)),B2) Essentially I just need B2 in the formula above to return the