-
-
Save Greedquest/e7b4e6863618e2f495a185902384d566 to your computer and use it in GitHub Desktop.
SET Custom Excel LAMBDA module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**Differences between 2 sets*/ | |
DIFFERENCE = LAMBDA(a, b, | |
UNIQUE(VSTACK(UNIQUE(a), UNIQUE(b)), , TRUE) | |
); | |
/**Intersection of 2 sets (elements in both)*/ | |
INTERSECT = LAMBDA(a, b, | |
DIFFERENCE(VSTACK(a, b), DIFFERENCE(a, b)) | |
); | |
/**Set subtraction A - B (elements in A not in B)*/ | |
SUBTRACT = LAMBDA(subtractB, fromA, | |
UNIQUE(VSTACK(UNIQUE(fromA), subtractB, subtractB), , TRUE) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install Excel.Labs Advanced formula environment. Select the cloud to import
![image](https://user-images.githubusercontent.com/25348920/269221892-0ee154c7-9676-491a-8cd5-986098117c1e.png)
Use whatever module name you like + this gist's url![image](https://user-images.githubusercontent.com/25348920/269222350-883ed83c-1030-4a05-b89f-50a8ebfb7c2d.png)
Prefix depends on module name you selectedAlternatively add to an existing Module (like the workbook module if you don't want a prefix) by activating that module before clicking the cloud icon