Have Excel formulas that return 0, make the result blank

前端 未结 14 2039
别那么骄傲
别那么骄傲 2020-12-31 09:45

A recurring Excel problem I have is formulas such as INDEX(array,row,column) that return 0 when there\'s no result, rather than returning blank.

What is

14条回答
  •  半阙折子戏
    2020-12-31 09:58

    There is a very simple answer to this messy problem--the SUBSTITUTE function. In your example above:

    =IF((1/1/INDEX(A,B,C))<>"",(1/1/INDEX(A,B,C)),"")
    

    Can be rewritten as follows:

    =SUBSTITUTE((1/1/INDEX(A,B,C), " ", "")
    

提交回复
热议问题