Forum Discussion
Kunal_Mehta
Apr 12, 2023Copper Contributor
EXCEL FORMULA
Hi All, I have attached a sample data where i have two sheets in Excel. The data which i want from sheet 2 in sheet 1 is cloud classification column in sheet 1 cloud classification column but based...
PeterBartholomew1
Apr 13, 2023Silver Contributor
Using 365 (also required for the FILTER solution):
= LET(
name, SORT(UNIQUE(Table1[Name])),
HSTACK(name, MAP(name, Classifyλ))
)where the Lambda function, Classifyλ, is defined by
= XLOOKUP(
100000,
IF(Table1[Name] = n, Table1[Date]),
Table1[Classification], ,
-1
)To further conceal the actual formula one could wrap the formula within a further Lambda so that the worksheet formula becomes
= CurrentClassificationsλ()The main criticism of that formula is that it has Table1 hard-wired into the formula rather than showing it as a predecessor using a parameter. Passing the parameter into the Classifyλ function and providing an alternative to the structured referencing is more challenging.