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?


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

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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