It could be, that somehow the format is changed during the cut/paste.
If you have real numbers in A1:A10, then =COUNT(A1:A10) will return 10,
and =COUNTA(A1:A10) will also return 10. However if you replace one of
those numbers with TEXT, (or a TEXT string that looks like a number), then
=COUNT(A1:A10) will return 9, while =COUNTA(A1:A10) will still return
10.......this tells you that although there are 10 entries in A1:A10, one of
them is actually TEXT.
Only other thing I can think of, is if you are performing the import
function via a macro, perhaps you could incorporate the copy/paste function
upon error. I know I've had to rework import macros in the past to
accomodate various combinations of leading spaces, etc....especially on
"Excel files" created by a dump from the company's main computer.
Chip Pearson has a little add-in on his site called CellView, that will let
you look at each cell in one of the files that will not import, to see if
there are any hidden characters that may be interfering with the
import......perhaps that would help.
Sorry I don't have a quick and easy answer for you.
Vaya con Dios,
Chuck, CABGx3
> Does the cutting and pasting into a new spreadsheet reformat the data
> somehow? Because it always works after that act.
>
> What do you mean by a test of the COUNT vs the COUNTA?
tcb - 18 Dec 2007 20:23 GMT
Thanks for your answers. I'll follow up on your ideas. The
spreadsheet to be imported is created via a data dump from a company's
main computer, just as in your case.
The failure happens so infrequently that it's hard to spend a lot of
time on the problem. Last time it happened was four months ago.
Nonetheless I'd like to get it resolved!
CLR - 18 Dec 2007 20:33 GMT
FWIW, my troubles came from different Main Computer Operators doing things
different with the different dumps.....I don't know how they varied things,
but I clearly saw the results and had to deal with them accordingly. MIS
refused to standardize the procedure to give me the same thing every time, so
I had to accomodate the differences in my macros.
Vaya con Dios,
Chuck, CABGx3
> Thanks for your answers. I'll follow up on your ideas. The
> spreadsheet to be imported is created via a data dump from a company's
[quoted text clipped - 3 lines]
> time on the problem. Last time it happened was four months ago.
> Nonetheless I'd like to get it resolved!