Trying to get the results of the sumproduct formula as an array for further use
In my VBA procedure.
In my case I have a list of dates (01/11/2020-10/11/2020) I would like to find a match
Which dates in the range of + - two days from a certain date (04/11/2020)
In addition there is a list of values that I want to find in the range of + -1 a certain value
The common matches of dates and values should be saved into an array with the row number of matches somthing like array()=(3,4,6,7)
Trying to use the formula SUMPRODUCT((A3:A12>=A1-2)*(A3:A12<=A1+2)*(B3:B12>=B1-1)*(B3:B12<=B1+1)*ROW(A3:A12))
to get the line numbers but only getting their sum
Anyone have an idea how this can be done using a macro (UDF) function
sumproduct.JPG
Bookmarks