Forum Discussion
How to make an blank array?
- Mar 21, 2023
Below is an example of a data transformation using blank values within a pivoted array.
Note for display in the grid null strings are used:
MATRIX(row,col,val,"")
but for arithmetic calculations, blank values are used instead::
MATRIX(row,col,val)
Patrick2788 They are not the true blanks. ISBLANK(EXPAND("",2,2,"")) return {false,false;false,false}
- Patrick2788Mar 19, 2023Silver ContributorWhat's the goal in returning 'true blanks'?
- lori_mMar 19, 2023Iron Contributor
I had tried this same exercise to gain a better understanding of the formula language for building lambdas, since one often needs to account for null inputs. ISBLANK can be contrasted with ISOMITTED which returns a single FALSE value when given an array of blanks but does returns TRUE for the missing definition above.
- SergeiBaklanMar 19, 2023Diamond Contributor
From that point of view slightly modified initial formula
=LET(x, MAKEARRAY(2,2, LAMBDA(r,c, LAMBDA([n],n)() ) ), ISBLANK(x) )
returns all TRUE.
Still didn't catch what is the purpose.
- yushangMar 19, 2023Brass Contributor
Patrick2788 I just want to use ISBLANK. I found 2 solutions
1. reference a blank cell, for example, A65536, which is far enough from occasionally modify.
2. do not use ISBLANK, instead, use NA() and ISNA() pair, this solution is more robust.