The error means that a value is not available. Is the formula correctly getting the values from $L$1:$M$4? The only way that I can reproduce the error is to delete the 1 from that range.