Sql and excel

Right now I use sql to get data from an excel spreadsheet sent to us from a vendor. Inside of this sheet there is 9 cells in a row that have pricing information and the column headings change because the column heading is the week the price is valid. So I use column numbers to select instead of name. I don't think this has anything to do with my problem but when I post code some people may scratch their heads if they see all numbers instead of column names. My problem is that there are four cells in the middle of this nine that always come out as zero. Regardless of what I do. I have tried manually typing in the information, I have copied all data out of the sheet and into another sheet. Still same results. Here is the code.

for(i = 0; i < 10; i++){

amount2[i] = 0;

amount2[i] = rs.getDouble(i+25);

System.out.println(upc +" " + amount2[i]);

}

Results of this code are it prints the first 3 cells pricing then the next four are always 0 then after that the pricing is back again.

Anyone have any good ideas or have seen this happen. Thanks.

[1214 byte] By [jjdahlheimera] at [2007-11-27 5:07:46]
# 1
As a guess the cell type/format causes it.For debugging try extracting as a string rather than a double.
jschella at 2007-7-12 10:26:58 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

That is what I thought at the beginning but I have tried changing it from currency to accounting, general, number, and then finally to text. On top of that I retyped in a lot of the numbers none of that seems to work. But when I put text into the problem cells that shows up? But one thing I noticed when extracting it as strings is the problem cells that are supposed to have something in them come out as null and the problem cells that are supposed to be blank are just blank.

jjdahlheimera at 2007-7-12 10:26:58 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...