One of the values in row 80 is #N/A. There is nothing wrong with the formula that you are using, so the error must be in the values being evaluated.