I'm drawing a blank on how to add numbers up while looping through a row of numbers.
The values are 16 + 2 + 1 + 2 + 1 = 22
How do I add the numbers up to equal 22?
for(int x = 2; x <= Sheet1.getLastRow(); x++)
{
for(int i = 5; i <= 16; i++)
{
addValues = Sheet1.getText(x, i); //(row, col, value)
// addValues will loop through getting values 16,2,1,2,1
????
}
// adds the total to the 3 column
Sheet1.setText(x, 3, addValues);
}
Dano
dskryzer@hotmail.com
What's your major malfunction
The values are 16 + 2 + 1 + 2 + 1 = 22
How do I add the numbers up to equal 22?
for(int x = 2; x <= Sheet1.getLastRow(); x++)
{
for(int i = 5; i <= 16; i++)
{
addValues = Sheet1.getText(x, i); //(row, col, value)
// addValues will loop through getting values 16,2,1,2,1
????
}
// adds the total to the 3 column
Sheet1.setText(x, 3, addValues);
}
Dano
dskryzer@hotmail.com
What's your major malfunction