completebhejafry
New Member
Hey!
I wrote a custom lookup function to help me out. Its a little difficult to explain, so please look at the uploaded file here.
https://www.dropbox.com/s/sfb7crrql21n26p/for%20upload%20to%20forum.xlsm
The cells highlighted in yellow are what I am looking up. If you notice, the snapshot I've shared has the same lookup value.
In such a case, there are a lot of ways I can separate it out. The one I am unable to implement is:
1. The date highlighted in blue must be as recent as possible.
2. The date highlighted in orange must be in the future.
How do I do this?
PS: I've put the complete code I'm using in the file. Please see if I can do this with minimal change to this code.
I wrote a custom lookup function to help me out. Its a little difficult to explain, so please look at the uploaded file here.
https://www.dropbox.com/s/sfb7crrql21n26p/for%20upload%20to%20forum.xlsm
The cells highlighted in yellow are what I am looking up. If you notice, the snapshot I've shared has the same lookup value.
In such a case, there are a lot of ways I can separate it out. The one I am unable to implement is:
1. The date highlighted in blue must be as recent as possible.
2. The date highlighted in orange must be in the future.
How do I do this?
PS: I've put the complete code I'm using in the file. Please see if I can do this with minimal change to this code.