Forum Discussion
MarkolaKrai
Mar 07, 2023Copper Contributor
Set theory operations with dynamic arrays
I wonder if any of you have figured this out already (and i would like to have feedback about what i have done so far), i have been playing with columns of data and creating easy set theory operation...
Patrick2788
Mar 07, 2023Silver Contributor
Perhaps with REDUCE:
=REDUCE("Not in List2",list1,LAMBDA(a,v,IF(OR(v=list2),a,VSTACK(a,v))))
- MarkolaKraiMar 07, 2023Copper ContributorPatrick2788 Thank you for the reply, this formula is cleaner than mine for the difference of sets i did not remember to use REDUCE because for some reason my brain always thinks the initial value and the accumulator must handle numbers only. I will be using this solution from now on if i have more than 2 sets.