samdthompson
New Member
- Joined
- May 1, 2018
- Messages
- 14
Hello, I am wanting to spill an xlookup of a maximum number but am hitting a #VALUE error. The basic format is:
I get that xlookup wont work in this instance so would like to use BYROW but I cannot seem to get it working. I figured something like:
=BYROW(b2:c7,LAMBDA(v,a,r,XLOOKUP(v,a,r)(max(b2:c7),b2:c7,b1:c1)) would work but no dice. Since there is a substantial variation in the number of possible rows, I do want a spilling result.
And yes I get that I should be using the downloadable mini sheet thing but that would require me to have admin rights to install on my laptop.
week | cat | rat | intended result | basic intent | |
2 | 34 | 16 | cat | =xlookup(max(b2:c7),$b$2:$c$7,$b$1:$c$1)) | |
3 | 48 | 24 | cat | ||
4 | 37 | 15 | cat | ||
5 | 25 | 40 | rat | ||
6 | 54 | 45 | cat | ||
7 | 38 | 39 | rat |
I get that xlookup wont work in this instance so would like to use BYROW but I cannot seem to get it working. I figured something like:
=BYROW(b2:c7,LAMBDA(v,a,r,XLOOKUP(v,a,r)(max(b2:c7),b2:c7,b1:c1)) would work but no dice. Since there is a substantial variation in the number of possible rows, I do want a spilling result.
And yes I get that I should be using the downloadable mini sheet thing but that would require me to have admin rights to install on my laptop.