Can't you set your template up such that B1 initially contains a value less than any number you would be expecting? It will be replaced therefore on the first upload of data. And in B2, a value greater than any value you would be expecting?