Return text value based on matching criteria including date range

trancer78

New Member
Joined
Jan 15, 2012
Messages
5
Hi Everybody,

I am trying to get a formula to return a text value based on a couple inputs. Where I am running into trouble is that one of the inputs wouldn't be a match, but would be a date between a start/end date within the range it is looking at.

Does anybody have any ideas on how I could return the value of column A when H2 matches column C and the date in H3 if between the dates in columns D & E?


A
B
C
D
E
F
G
H
1
Project Name
Status
Project Code
Start Date
End Date
INPUTS
2
Conversion Code Report
Closed
4
01/24/18
01/26/18
Project Code:
3
3
Pre-Cutover
Closed
3
01/08/18
02/06/18
Date:
12/21/2017
4
Adr/Occ reporting
Closed
3
12/20/17
12/28/17
5
Password Manager
Closed
5
12/14/17
12/28/17
Result:
Adr/Occ reporting
6
Resyncs
Closed
3
12/05/17
12/07/15

<tbody>
</tbody>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Your data is wrong in D6 and E6
E6 cant be less than D6
 
Last edited:
Upvote 0
Here's an alternative that doesn't use an array formula (which slows things down)


=IFERROR(LOOKUP(2,1/(D2:D6=I2)/(I3>=E2:E6)/(I3<=F2:F6),B2:B6),"")
 
Upvote 0

Forum statistics

Threads
1,216,727
Messages
6,132,354
Members
449,720
Latest member
NJOO7

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