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
mtarler
Jul 06, 2022Silver Contributor
yes this is a limitation and there are some workarounds I believe members here came up with BUT in your case I would recommend just using a custom number format on the column to display 0 value as blank (""). Open number format goto 'more number formats', select "Custom" and then under the "Type:" entry bar type: 0;-0;