You need to replace the + operation with the IMSUM() function, and the / operation with the IMDIV() function. So, for example, the numerator might be =IMSUM(-M8,IMSQRT(M8^2-4*L8*N8)).