• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Export to Excel from Java List and formatting  RSS feed

 
Greenhorn
Posts: 2
  • 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

Name

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
                                                E
Michael C
                                               E
Michael B
                                               D
Isabella
                                                D



 
Rancher
Posts: 810
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rodney,

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.

Les
 
Rodney Bowden
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My project can be found here
https://github.com/rod182211/StaffRost
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!