Reduce a list of dates

London123

New Member
Joined
Mar 21, 2017
Messages
9
Hi,


I have a list of participant ID's and start and stop dates for when they have been on a medication. Some participants have multiple rows but I would like one row per participant.


Participant Start date Stop date
1 24.11.2011 01.01.2016
1 18.02.2010 24.11.2011
1 24.11.2011 01.01.2016
1 18.02.2010 24.11.2011




I would like to just take the earliest date for the start date and the latest date for this stop date.


Participant Start date Stop date
1 18.02.2010 01.01.2016




Any help would be greatly appreciated!


Thank you
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,


I have a list of participant ID's and start and stop dates for when they have been on a medication. Some participants have multiple rows but I would like one row per participant.


Participant Start date Stop date
1 24.11.2011 01.01.2016
1 18.02.2010 24.11.2011
1 24.11.2011 01.01.2016
1 18.02.2010 24.11.2011




I would like to just take the earliest date for the start date and the latest date for this stop date.


Participant Start date Stop date
1 18.02.2010 01.01.2016




Any help would be greatly appreciated!


Thank you

Excel stores dates as numerical values, which increase with each day. You should be able to use a MIN and MAX function to find the first and last date in the list.
 
Upvote 0
Excel stores dates as numerical values, which increase with each day. You should be able to use a MIN and MAX function to find the first and last date in the list.

OK thanks. I didn't mention that the list is very long, it has over 3000 rows (and about 1000 participants). I am not sure how I would get excel to give the min/ max function for each participant ID?
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,054
Latest member
juliecooper255

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