Forum Discussion
apo114
Mar 12, 2022Copper Contributor
USE A NAME FROM A TABLE
1. A line refers to an event. I have 2 conditions: a. 2 cells of the line have 2 different type of numbers b. The combination of those 2 numbers according to their range, puts them in a category as...
PeterBartholomew1
Mar 12, 2022Silver Contributor
This is a guess at what you require but, if the values 'typeA' and 'typeB' are looked up as the row and column headers of the 'category' table, categories may be returned using
= INDEX(category, XMATCH(typeA, listA, -1), XMATCH(typeB, listB, -1))
apo114
Mar 12, 2022Copper Contributor
Can you solve the issue under the "TEAM", so that I know what it is under the conditions below?
Thanks in advance!
Apo
- PeterBartholomew1Mar 12, 2022Silver Contributor
What version of Excel do you use? I normally develop for 365.
= MAP(POINTS, CASH, LAMBDA(pts,usd, FILTER(TEAM, (pts>=A_lower)*(pts<=A_upper) * (usd>=B_lower)*(usd<=B_upper),"") ) )
Without Lambda
= FILTER(TEAM, (@POINTS>=A_lower)*(@POINTS<=A_upper)* (@CASH>=B_lower)*(@CASH<=B_upper), "")
and copy down. Otherwise
= IFERROR( LOOKUP(1, 1/(@POINTS>=A_lower)/(@POINTS<=A_upper) /(@CASH>=B_lower) /(@CASH<=B_upper), TEAM), "")
and copy down.
- PeterBartholomew1Mar 12, 2022Silver Contributor