Forum Discussion
rando230
Apr 18, 2024Copper Contributor
Formula brainstorming
Hi all, I have a set of data that requires me to set up personnel that is active/inactive. The dataset is about a set of professional that took exam on certain timeframe. The dataset samp...
djclements
Apr 18, 2024Bronze Contributor
rando230 If you have Excel for MS365, one possible dynamic array solution could be:
=LET(
data, A2:B1000,
col_1, INDEX(data,, 1),
col_2, INDEX(data,, 2),
dates, TOROW(SORT(UNIQUE(col_1),, -1 ), 1),
names, TOCOL(SORT(UNIQUE(col_2)), 1),
results, COUNTIFS(col_1, dates, col_2, names),
VSTACK(
HSTACK("Name", dates, "Status"),
HSTACK(names, IF(results, "x", ""), BYROW(TAKE(results,, 2), LAMBDA(r, IF(OR(r), "Active", "Inactive"))))
)
)
Please see attached workbook, if needed...