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
 

Some videos you may like

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

macattackpro

Board Regular
Joined
Nov 27, 2017
Messages
55
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,491
Messages
5,596,477
Members
414,070
Latest member
DuncanLucas

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
Top