vlookup with date criteria.

Godders199

Active Member
Joined
Mar 2, 2017
Messages
313
Office Version
  1. 2013
Hello, i am trying to get the following formula to work.
=INDEX('QA Oversight file'!J:J,MATCH(1,IF('QA Oversight file'!G:G, ">="&COA!$M$2,IF('QA Oversight file'!G:G, "<="&COA!$N$2,IF('QA Oversight file'!A:A,"="&A4,1))),0))

Effectively i need to return the text in column J:J, where the date in column G:G is between the dates in M2 and N2 , then the name in column A:A equals A4. all i am able to return is "0".

So Effectively a Vlookup =VLOOKUP(A4,'QA Oversight file'!A:J,10,FALSE) but with the date criteria between M2 and N2

There will only ever be one matching record within the date range.

I have tried both as an array and as a normal formula.

Any help appreciated.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
It should be like
Excel Formula:
=INDEX('QA Oversight file'!J:J,MATCH(1,IF('QA Oversight file'!G:G>=$M$2,IF('QA Oversight file'!G:G<=$N$2,IF('QA Oversight file'!A:A=A4,1))),0))
But with array formula you would be better of limiting the range, rather than using entire columns.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,342
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top