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
Patrick2788
Jul 06, 2022Silver Contributor
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
PeterBartholomew1
Jul 06, 2022Silver Contributor
Neat use of MAP! Not that I had realised that the original formula would fail. ISTEXT also works inside the Lambda function.