Cell D2 generates either of a numerical value or null or space/(s).
E2=IF(D2=null OR space/(s),0,the numerical value)
How to accomplish?
Cell D2 generates either of a numerical value or null or space/(s).
E2=IF(D2=null OR space/(s),0,the numerical value)
How to accomplish?
Perhaps...
Formula:Please Login or Register to view this content.
To account for multiple spaces, you could also try:
Formula:Please Login or Register to view this content.
Paul May I know what is the difference between the 2 formulas? Rather which one is more useful?
The first formula only checks for Null or one space character in D2. If either is the case, 0 is returned, otherwise the value in D2 is returned.
The second formula TRIM's the value in D2 (removing any leading or trailing spaces) first. If D2 was already empty, or had 1+ spaces, it will be seen as empty and the formula will show 0, otherwise it will show the value in D2.
Thanks Paul for sharing the knowledge. I have used your first formula.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks