Selecting latest date in a list with multiple objects

robbied13

New Member
Joined
Apr 18, 2011
Messages
25
Good morning,

The way our planning system is set up, it creates a brand new record for an employee if they move departments. The first record will have an effective end date on the date of the transfer and the second record will have an effective start date on the same day. Normally, if they do not move, the effective start date is just their start date. What's the easiest way to pull the latest effective start date for an employee based on their employee ID?

In the below example, Emp A changed departments, Emp B left the company, and Emp C is still at the company in the same department. The latest effective start date is 1/1/18 for Emp A

Emp IDStart DateTerm DateEffective Start DateEffective End Date
Emp A
1/1/161/1/1612/31/17
Emp B1/1/1712/1/171/1/1712/1/17
Emp C6/1/176/1/17
Emp A1/1/161/1/18

<tbody>
</tbody>


<colgroup><col><col span="2"><col><col><col span="2"><col></colgroup><tbody></tbody>

Thanks,

Rob
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try this:

Code:
{=MAX(IF(A2:A5="Emp A",D2:D5))}

Note the formula is an array and requires you to use Ctrl + Shift + Enter and not just Enter. Do not try to enter the braces yourself as it will error.
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,329
Members
451,637
Latest member
hvp2262

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