Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!