Hi All,
Long time lurker first time poster.
I am having a little trouble with an array formula i constructed.
"{=INDEX('Data'!$S$7:$S$3050,MATCH(MIN(ABS(IF('Data'!$R$7:$R$3050=E5,'Data'!$Q$7:$Q$3050,999999)-C5)),ABS(IF('Data'!$R$7:$R$3050=E5,'Data'!$Q$7:$Q$3050,999999)-C5),0))}"
Basically the range S in 'Data' is the data its pulls, range R in 'Data' is the unique identifier code and range Q in 'Data' is the date. Subsequently range E is the unique identifier being looked up and range C is the date being looked up.
What the array currently does is match the unique identifier and pull the value closest to a date.
What I am struggling to incorporate is a condition that it cant pull the data before a date. Thus it should only pull the data which is closest to the date it matches that is after the date in range C.
Thanks for you help guys.
Bookmarks