Probably should be:

=IF(COUNTIF(F50:F51,"ND"), "NA", F50/F51) since the cells are merged, you are really only looking at column F.