P Pinang Member Apr 20, 2023 #1 Hi, I need to find maximum match from column and return column heading in result. Attached sample excel file with example. Thanks in advance. Attachments Match from each group.xlsx Match from each group.xlsx 10.1 KB · Views: 21
Hi, I need to find maximum match from column and return column heading in result. Attached sample excel file with example. Thanks in advance.
John Jairo V Well-Known Member Apr 20, 2023 #2 Hi @Pinang! Check file, with this formula applied: =IFNA(LOOKUP(1,0/(A2:D2=G2),A$1:D$1),"") Blessings! Attachments Match from each group.xlsx Match from each group.xlsx 11.2 KB · Views: 6
Hi @Pinang! Check file, with this formula applied: =IFNA(LOOKUP(1,0/(A2:D2=G2),A$1:D$1),"") Blessings!
B bosco_yip Excel Ninja Apr 21, 2023 #3 Another formula approach, criteria data may not be at the same row of Group Table, pls see below: 1] Define Name: 2] In H2, formula copied down: =IF(1-ISNA(MATCH(G2,INDEX(GroupTable,,MaxColNum),0)),INDEX(CroupHeader,MaxColNum),"") 3] See attachment Attachments Match from each group (BY).xlsx Match from each group (BY).xlsx 12.8 KB · Views: 5
Another formula approach, criteria data may not be at the same row of Group Table, pls see below: 1] Define Name: 2] In H2, formula copied down: =IF(1-ISNA(MATCH(G2,INDEX(GroupTable,,MaxColNum),0)),INDEX(CroupHeader,MaxColNum),"") 3] See attachment
P Peter Bartholomew Well-Known Member Apr 22, 2023 #4 Similar defined names to @bosco_yip but using the most recent functions. Code: = BYROW(groupTbl=data, LAMBDA(crit, XLOOKUP(TRUE, crit, groupHdr, "", ,-1) )) The matching headers are returned as a single dynamic range.
Similar defined names to @bosco_yip but using the most recent functions. Code: = BYROW(groupTbl=data, LAMBDA(crit, XLOOKUP(TRUE, crit, groupHdr, "", ,-1) )) The matching headers are returned as a single dynamic range.
P Pinang Member Apr 25, 2023 #5 Th Pinang said: Hi, I need to find maximum match from column and return column heading in result. Attached sample excel file with example. Thanks in advance. Click to expand... Thanks
Th Pinang said: Hi, I need to find maximum match from column and return column heading in result. Attached sample excel file with example. Thanks in advance. Click to expand... Thanks