Forum Discussion
Trying to use a spill range as a reference for FILTER that uses INDEX
- Sep 14, 2024
=SORT(UNIQUE(DROP(REDUCE("",F3#,LAMBDA(u,v,VSTACK(u,FILTER(Table1[Power (kW)],Table1[Combined Values]=v,"")))),1)))
Does the formula in cell G3 return the expected result?
=SORT(UNIQUE(DROP(REDUCE("",F3#,LAMBDA(u,v,VSTACK(u,FILTER(Table1[Power (kW)],Table1[Combined Values]=v,"")))),1)))
Does the formula in cell G3 return the expected result?
- Insert_KeySep 14, 2024Brass Contributor
Amazing! It does, thank you! While you were solving that, believe it or not I was trying to find some online resources to help me learn LAMBDA... I have zero experience with it. My workplace only moved up to 365 recently, and while there's a bunch of "new" stuff that I've got across and use regularly, there's probably more that I haven't and don't - including things like LAMBDA that I have zero concept of.
I need to test it in the actual file ASAP to see how it functions there, and importantly do a bit of study so that I can understand your solution. I'll leave my post open for the rest of the weekend to see what, if any, other approaches come though. Thanks again, Oliver 😊
EDIT / UPDATE: I copied the formula to my proper file, updated its references, and it worked exactly as required 🚀
- m_tarlerSep 14, 2024Bronze Contributor
Insert_Key alternatively:
=FILTER(Table1[Power (kW)],ISNUMBER(XMATCH(Table1[Combined Values],F3#)),"none")
and feel free to add the SORT() UNIQUE() but the point is another way to do the filter without the LAMBDA but you should definitely learn about LAMBDA and the helper functions
- Insert_KeySep 15, 2024Brass Contributor
m_tarler :
Thank you - this is great! 🤗 I am *much* closer to understanding this than the LAMBDA solution.
While I acknowledge that I need to get across LAMBDA, I feel like I need to prioritise investing in some structured study to get across all of the formulas and functionality that were not included in / supported by Excel 2016. My workplace only moved to 365 a few months back, and I'm becoming increasingly aware that there is a lot that "I don't know that I don't know". I only saw XMATCH for the first time this weekend - will get across how your solution works before releasing it into the wild!
Coming to grips with new functionality and formulas is something I can do in manageable bite-sized chunks but learning LAMBDA feels like it would require much more of a deep-dive.