Skip to content

Instantly share code, notes, and snippets.

@ncalm
Created April 30, 2024 17:14
Show Gist options
  • Save ncalm/f6ce93ed9825ce6a330cb0ae3d34eec1 to your computer and use it in GitHub Desktop.
Save ncalm/f6ce93ed9825ce6a330cb0ae3d34eec1 to your computer and use it in GitHub Desktop.
This Excel LAMBDA functions mimics SUMPRODUCT but allows a single 2D array as its only argument
IFOMITTED = LAMBDA(arg,then,IF(ISOMITTED(arg),then,arg));
SUMPRODUCT2 = LAMBDA(array, [axis],
SUM(IF(IFOMITTED(axis,0)=0, BYROW, BYCOL)(array, PRODUCT))
);
@ncalm
Copy link
Author

ncalm commented Apr 30, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment