= LET(
distinctSubjects, SORT(UNIQUE(Table1[Subject Number])),
earliestStart, MINIFS(Table1[Start date], Table1[Subject Number], distinctSubjects),
latestStop, MAXIFS(Table1[Stop date], Table1[Subject Number], distinctSubjects),
HSTACK(distinctSubjects, earliestStart, latestStop)
)
I use off 365 sir. I would like to get the Minimum date from Column D (Start Date) and Max date from the Stop date column E.what version of excel do you have
you could use
UNIQUE() to get a list of the subject numbers
then MINIFS() for min and MAXIFS() for max
which column is the date you want to find the min and max of
Thank youThis follows @ETAF and uses 365 to build a separate table with each subject sorted and on a single row
Code:= LET( distinctSubjects, SORT(UNIQUE(Table1[Subject Number])), earliestStart, MINIFS(Table1[Start date], Table1[Subject Number], distinctSubjects), latestStop, MAXIFS(Table1[Stop date], Table1[Subject Number], distinctSubjects), HSTACK(distinctSubjects, earliestStart, latestStop) )