Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
The change of the average according to the last row in Excel ,

I want to add SQL Query result to the created Excel File. And as a result, I need to average some columns at the bottom. My question is; The number of rows is changing in some queries. How can I shift the average result by the last row according to the changing row?

example

after writing to excel

I'm learning now to add results using Postgresql to an Excel file created using apache poi.

Resource resource = resourceLoader.getResource("classpath:/temps/" + querySelected.getTemplateName());

workbook = new XSSFWorkbook(resource.getInputStream());
XSSFSheet sheetTable1 = workbook.getSheet("Table1");

int rowCounter = 1;


for (tname:tname) {

    Row values = sheetTable1.createRow(rowCounter);
    rowCounter++;}


    cell = values.createCell(0, CellType.NUMERIC);
    cell.setCellValue(knz.gettablename().doubleValue());}
about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda