Index and Match value with partial text between two dates

edilly

New Member
Joined
Feb 14, 2019
Messages
2
I'm building an overview spreadsheet that takes information from multiple different reports. The formula I'm struggling with identifies employees by last name while all the other reports use full name (Last, First, MI), so I need to use partial text or wildcards. The report provides a row for each contract signed yearly by the employee, so I need to locate the current contract for said employee. Finally I want to either display the "Signed" if it's been signed, or leave it blank if it hasn't on the employee overview sheet.

Imported Report Sheet
ABCD
1Last NameSupervisorEff StartEff End
2BudgeGrier, Josh8/1/20177/31/2018
3Budge8/1/20187/31/2019
4CardielMyers, Ralph11/1/201710/31/2018
5CardielMyers, Ralph11/1/201810/31/2019

<tbody>
</tbody>

Employee Overview Sheet
AB
1EmployeeContract Signed
2Budge, Thomas M.
3Cardiel, Steven J.

<tbody>
</tbody>

I'm using named ranges to simply the process when I import the reports. In the end I want B2 on the "Overview Sheet" to stay blank and B3 to fill with "Signed" or something else indicated that his contract is signed.

Here's the formulas that I've tried so far in Sheet2!B3
=INDEX(Sheet1!B2:B5,MATCH(1,IF(AND(Sheet1!C2:C5<=TODAY(),(Sheet1!D2:D5>=TODAY())),"*"&Sheet1!A2:A5&"*"),Sheet2!A2:A3),0)
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Your formula is not working because the AND function can't return an array and the IF function doesn't support wildcards.

Maybe one of the formulas below will help. If you have Excel 2010 or later then you could use the AGGREGATE function in cell B2, or the array formula in cell C2 will work in any ver., but it must be entered with CTRL-SHIFT-ENTER. Drag formulas down as needed.

Excel Workbook
ABC
1EmployeeContract SignedContract Signed
2Budge, Thomas M.  
3Cardiel, Steven J.SignedSigned
Sheet2
Excel Workbook
ABCD
1Last NameSupervisorEff StartEff End
2BudgeGrier, Josh8/1/20177/31/2018
3Budge8/1/20187/31/2019
4CardielMyers, Ralph11/1/201710/31/2018
5CardielMyers, Ralph11/1/201810/31/2019
Sheet1
 
Upvote 0
Thanks, that worked! I was running into "excel ran out of resources" errors. Once I cleaned up a few other things on the spreadsheet, its working perfectly.
 
Upvote 0
Your welcome.Thanks for the feedback and welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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