• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

index and match for the date range

mhghg

Member
Hi guys,
I am having the problem to create the index/match formula for my named range
My named range tblData is exporting from sql server from A6: D120.
I have sheet set up like this
J K L
Term Start Date Finish Date
1 27/01/2016 24/03/2016
2 11/04/2016 24/06/2016
3 11/07/2016 16/09/2016
4 03/10/2016 22/12/2016



In my named range column 3 is the finish date I create the formula to find if the finish date is between the range from above then add the correct term number to the last column of my named range tblData, but i got the error #N/A
Please help me to correct where I am wrong in the formula

=INDEX(J$1:J$4,MATCH(1,IF(INDEX(tblData,1,3)>=K$1:K$4,IF(INDEX(tblData,1,3)<L$1:L$4,1)),0))

Thanks
Macy
 
Hi Nebu,
I try your formula, but it shows error when comparing cell value with second data range, not sure why?
upload_2016-6-30_12-30-22.png

and here is the file
 

Attachments

Back
Top