Normaliseλ
= LAMBDA(fruits, data,
LET(
criteria, {"Processing", "Verifying", "Reviewing"},
date, CHOOSECOLS(data, 2, 4, 6),
initials, CHOOSECOLS(data, 1, 3, 5),
dateList, TOCOL(date),
initList, TOCOL(initials),
fruitList, TOCOL(CHOOSECOLS(fruits, 1, 1, 1)),
activityList, TOCOL(IF(ROW(fruits), criteria)),
table, HSTACK(dateList, initList, fruitList, activityList),
table
)
);