Created
April 18, 2022 12:36
-
-
Save m-ocean-it/ceb4535f0e98233191c8911c376c8680 to your computer and use it in GitHub Desktop.
AppScript (Google Sheets): MIN & MAX functions for ARRAYFORMULA
This file contains hidden or 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
function ARRAYMIN(xx, yy) { | |
return xx.map((x, idx) => { | |
const y = yy[idx] | |
return Math.min(x, y) | |
} | |
} | |
function ARRAYMAX(xx, yy) { | |
return xx.map((x, idx) => { | |
const y = yy[idx] | |
return Math.max(x, y) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: