1st and last date

kylefoley76

Well-known Member
Joined
Mar 1, 2010
Messages
1,553
I'm trying to build a formula where I have the name in column b but the same appears several time, each with a different date in column a. I want a formula which in column c will return the date where the name appears first, then column d it returns the date where the name appears last.

maybe i can just get ride of column c and d and make a formula where the data appears first then a dash, then the last date.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
If the name of interest is in Ei, then for the first date try: =LOOKUP(E1,$B$1:$B$10,$A$1:A10)

For the last try: =LOOKUP(2,1/($B$1:$B$10=E1),$A$1:$A$10) Adjust ranges to suit.
 
Upvote 0
Here's an example, adapt to your needs...
Excel Workbook
ABCD
1mary<< Look up Who?
2DatesEmployeesEarliestLatest
31/15/2011jim11/20/1003/14/11
42/15/2011paul
53/14/2011Mary
63/15/2011paul
712/31/2010jim
811/20/2010Mary
910/31/2010paul
1012/31/2010paul
112/15/2011Mary
1211/27/2010jim
Sheet1
Excel 2007
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
If the name of interest is in Ei, then for the first date try: =LOOKUP(E1,$B$1:$B$10,$A$1:A10)

For the last try: =LOOKUP(2,1/($B$1:$B$10=E1),$A$1:$A$10) Adjust ranges to suit.

The second one is working, but not the first. For the first I'm getting numbers that are way off.
Try this for the first date...

=INDEX(A1:A10,MATCH(E1,B1:B10,0))

Format as Date
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,476
Members
452,915
Latest member
hannnahheileen

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