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
daisyblazey
Jul 12, 2022Copper Contributor
The MAP formula worked as it preserved the number type for cells with different types! Thank you so much!
Patrick2788
Jul 12, 2022Silver Contributor
You are welcome!