Forum Discussion
Why is my new workbook not recognizing empty cells as zeroes?
- Sep 04, 2023
DavidJonDavis Then those cells aren't really empty. The may contain a single space, an empty sting ("") or another invisible character. Are these cells the result of another formula perhaps? Or were the copied and pasted from the web?
Best to fix this at the source and make sure the cells are really empty. Alternatively use the N function. For instance, if A1 could be empty or contain a number and you want to multiply it by 10, se this:
=10 * N(A1)
This will return 0 for anything in A1 that is not a number.
DavidJonDavis Then those cells aren't really empty. The may contain a single space, an empty sting ("") or another invisible character. Are these cells the result of another formula perhaps? Or were the copied and pasted from the web?
Best to fix this at the source and make sure the cells are really empty. Alternatively use the N function. For instance, if A1 could be empty or contain a number and you want to multiply it by 10, se this:
=10 * N(A1)
This will return 0 for anything in A1 that is not a number.
- DavidJonDavisSep 04, 2023Copper Contributor
Thanks! Riny_van_Eekelen