Nick van Staden
New Member
- Joined
- Dec 6, 2017
- Messages
- 18
- Office Version
- 365
- Platform
- Windows
Hi Awesome People,
I'm having difficulty tuning a lookup function to return a cell based on a date range as seen in example below:
What I am trying to archive is the value in column 'C' if column 'B' falls within the start and end date of E:F. If it doesnt fall within this date range must return "N/A" (for example).
The formula I am using is: =LOOKUP(2,1/(B3>=E4)*(B3<=F4),C3)
The issue with the formula above is its giving the result (what's in column "C") regardless if it falls within the date parameters or not.
Column "I":"M" is where I want to post the formula (results are examples of what must display.
I'm having difficulty tuning a lookup function to return a cell based on a date range as seen in example below:
What I am trying to archive is the value in column 'C' if column 'B' falls within the start and end date of E:F. If it doesnt fall within this date range must return "N/A" (for example).
The formula I am using is: =LOOKUP(2,1/(B3>=E4)*(B3<=F4),C3)
The issue with the formula above is its giving the result (what's in column "C") regardless if it falls within the date parameters or not.
Column "I":"M" is where I want to post the formula (results are examples of what must display.
REF | ACTION_DATE | RESULT | STARD | END | REF | Feb-19 | Mar-19 | Apr-19 | May-19 | Jun-19 | ||
1 | 2019/02/25 | Successful | 2019/01/01 | 2019/01/31 | 1 | Successful | Successful | Unsuccessful | Successful | Unsuccessful | ||
1 | 2019/03/25 | Successful | 2019/02/01 | 2019/02/28 | 2 | N/A | Unsuccessful | N/A | N/A | N/A | ||
1 | 2019/04/25 | Unsuccessful | 2019/03/01 | 2019/03/31 | 3 | N/A | N/A | N/A | Successful | Successful | ||
1 | 2019/05/25 | Successful | 2019/04/01 | 2019/04/30 | ||||||||
1 | 2019/06/25 | Unsuccessful | 2019/05/01 | 2019/05/31 | =LOOKUP(2,1/(B3>=E4)*(B3<=F4),C3) | |||||||
2 | 2019/03/25 | Unsuccessful | 2019/06/01 | 2019/06/30 | ||||||||
3 | 2019/05/25 | Successful | 2019/07/01 | 2019/07/31 | ||||||||
3 | 2019/06/25 | Successful | 2019/08/01 | 2019/08/31 | ||||||||
2019/09/01 | 2019/09/30 | |||||||||||
2019/10/01 | 2019/10/31 | |||||||||||
2019/11/01 | 2019/11/30 | |||||||||||
2019/12/01 | 2019/12/31 |