Forum Discussion
daisyblazey
Jul 06, 2022Copper Contributor
Reference to Sheet - Returning Blank if Cell is Blank #VALUE! Error
I'm trying to reference text cells from Sheet1 and insert blanks for blank references (as opposed to zeros). When using isblank() or len()=0, I receive #VALUE! errors for the longer text cells. ...
- Jul 06, 2022
You could use:
=MAP(Sheet1!A1:A68,LAMBDA(x,IF(x=0,"",x)))
The FILTER function can remove 0s but it would also contract the array. MAP will keep the numbers and blank out the 0s.
Another solution would be to custom format out the 0s. For example, custom formatting code:
0;-0;;General
SergeiBaklan
Jul 06, 2022Diamond Contributor
You may use
=SUBSTITUTE( Sheet1!A1:A68, "", "" )
IF() doesn't work with elements of the array with more than 255 characters long