Hi,
To convert an excel sheet to a csv just do a simple Save As.. when the excel sheet is open.
To extract two fields from the sheet you could do the following:
import java.io.*;
...
try {
BufferedReader fileInput = new BufferedReader(new FileReader(filename));
String line = fileInput.readLine();
String delimiters = ",";
int linecount = 0;
int partidcol = 0;
int quantitycol = 0;
int wordcount = 0;
while (line != null) {
StringTokenizer str = new StringTokenizer (line, delimiters);
wordcount = 0;
// Read first line and find what cols the partid and qty are in
if (linecount == 0) {
while (str.hasMoreTokens()) {
String word = str.nextToken();
if (word.equals("PARTID"

)
partidcol = wordcount;
if (word.equals("QUANTITY"

)
quantitycol = wordcount;
wordcount++;
}
}
if (linecount > 0) {
while (str.hasMoreTokens()) {
String word = str.nextToken();
if (wordcount == partidcol)
PartIDArray
= word.trim();
if (wordcount == quantitycol )
QuantityArray = word.trim();
wordcount++;
}
}
linecount++;
}
} catch (IOException e) {
//do something
}
Hope this helps.
Cheers.