Excel / VBA - Index Match function using Dynamic Ranges
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