Forum Discussion

DougB77's avatar
DougB77
Copper Contributor
Apr 20, 2020
Solved

Excel formula needs IF statement

I currently have the below formula but I am getting the -PHYSICAIN when a cell is blank and I am not sure how to add an IF statement to the formula or if there is a better way to produce the output n...
  • DhaniCole's avatar
    DhaniCole
    Apr 20, 2020

    DougB77 

    OK I'm glad it worked.  You would have to delete the space after each comma:

    =IF(ISBLANK(J17),"",J17&"-PHYSICIAN")&IF(ISBLANK(M17),"",","&M17&"-PHYSICIAN")&IF(ISBLANK(O17),"",","&O17&"-PHYSICIAN")&IF(ISBLANK(Q17),"",","&Q17&"-PHYSICIAN")&IF(ISBLANK(S17),"",","&S17&"-PHYSICIAN")&IF(ISBLANK(U17),"",","&U17&"-PHYSICIAN")&IF(ISBLANK(W17),"",","&W17&"-PHYSICIAN")

Resources