Occassionally, I need to use the formula =if(A1-B1=0, "", A1-B1) in C1; A1,B1,C1 being any cell or A1-B1 representing any formula and C1 representing target cell. It is tiresome to edit each required cell with the if statement. Can someone write a VBA for this.
This function, let's call it DNDIZ (short for Do Not Display If Zero) with the required formula will do exactly that. Will make life easy - at least for me. Example, entering DNDIZ(A1-B1) in the cell C1 will display a positive or negative number but not zero.
Unless there is an existing function in XL.
Ninad.
This function, let's call it DNDIZ (short for Do Not Display If Zero) with the required formula will do exactly that. Will make life easy - at least for me. Example, entering DNDIZ(A1-B1) in the cell C1 will display a positive or negative number but not zero.
Unless there is an existing function in XL.
Ninad.