Oct 11 2023 11:20 AM - edited Oct 11 2023 11:24 AM
I have a list of names with groups they can belong to (one column per group). Some individuals belong to many groups but in the end, I need find their primary group, based on a hierarchy. For instance, if the person is a Board member and a donor, the "Board" group take precedence on "Donor". Is there a way to do this without embedding tons of "IF" statements? There are 18 potential groups, in decreasing priority from the left to the right. Thanks.
Oct 11 2023 11:31 AM
Oct 11 2023 12:53 PM
This does the same as @mtarler except it runs through each row and it returns a group name for the numeric values as well as text.
= BYROW(groups,
LAMBDA(g, XLOOKUP(TRUE, g<>"", groupNames,""))
)
The other thing is that BYROW / LAMBDA is specific to Excel 365, as is every formula I write.
Oct 11 2023 01:30 PM