Help with Index/Match/If/Or

zodiaceuk

Board Regular
Joined
Nov 20, 2011
Messages
103
Hi Guys.

Hoping someone can help me with this, I can’t seem to figure it out.

Table Absence:
Employee ID
Date
Reason

Table RTW:
Employee ID
Absence start date
Absence end date
RTW completed date

(There is other data, not relevant)

If looking to match the absence to the RTW.
Each absence day is recorded, however, there will be only one RTW for the entire period (hope that make sense).

I’ve tried:
Code:
{=INDEX(RTW[Completed Date],MATCH(1,IF(Absence[@Employee ID]]=RTW[Employee ID],IF(OR(Absence[@Date]=RTW[First Absence Date],RTW[Last Absence Date]),1),0),0))

I can get the date to return, unfortunately, it returns the same date for any absences for that employee.... Have I overlooked something please?

Thanks in advance ?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Please provide sample data for each table.
Please provide the expected value(s) for the data provided as well as the value(s) you are actually getting.
 
Upvote 0

Forum statistics

Threads
1,224,742
Messages
6,180,683
Members
452,993
Latest member
FDARYABEE

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