Win a copy of The Career Toolkit this week in the Jobs Discussion forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

Export to Excel from Java List and formatting

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, I am trying to pass some data from a list into a spreadsheet. Current code below: This works fine in giving me a format as follows. But what i really want is the format as per attached. Any ideas greatly appreciated as I am struggling


Karen Ahrens E 2019-04-08
David Hemmings E 2019-04-08
Clayton Fletcher D 2019-04-08
Anthony Phan D 2019-04-08
Reece Bamford L 2019-04-08
Alana Gill L 2019-04-08
Sophie Dreves N 2019-04-08
Lisa Coull N 2019-04-08
Gemma Nevin E 2019-04-09
Michael C E 2019-04-09
Michael B D 2019-04-09
Isabella D 2019-04-09
Karen Ahrens L 2019-04-09
David Hemmings L 2019-04-09
Reece Bamford N 2019-04-09
Alana Gill N 2019-04-09
Gemma Nevin E 2019-04-10
Michael C E 2019-04-10
Michael B D 2019-04-10
Isabella D 2019-04-10

Name           2019-04-08     2019-04-09
Karen Ahrens            E                L
David Hemmings    E           L
Clayton Fletcher   D
Anthony Phan             D
Reece Bamford   L               N
Alana Gill L          N
Sophie Dreves  N
Lisa Coull          N
Gemma Nevin
Michael C
Michael B

Posts: 931
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It looks like you have a homework assignment that you need to write data to a column format according to how they are presented according to a date. Is that correct?

Please post all of the instructions you have concerning the homework so we can know what parameters you are trying to work within, otherwise you are, at best, going to get answers that are worthless for your class purpose.

Rodney Bowden
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My project can be found here
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic