Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Excel moving data between excel workbooks

  1. #1
    Junior Member
    Join Date
    Feb 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Excel moving data between excel workbooks

    Hi,

    For a storage system I need to transfer data from a .csv file (info from a scanner) to two different excel files, one with the entire storage, the other for projects. I need to register how much I take for a project and update the storage file. The .csv file contains "project number", "User", "Product number", "Quantity", "Date and time". I want to transfer the project number, product number and quantity to the project file, and collect product info from the storage file to the project file. Then I want to update existing values in the storage file to register how much is taken/put back.

    Does anyone have any idea?

    I have tried writing something in eclipse with Apache POI and Apache commons csv installed, but I am not good enough in programming yet.

    Any help is greately appreciated. If only just a thought.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Excel moving data between excel workbooks

    What have you tried? The Apache packages will help with reading and writing the csv files.
    If the csv files don't have quoted fields with embedded commas or newline characters, the files could be read and written as text without using the Apache packages. The String class's split method would separate the fields.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Feb 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Excel moving data between excel workbooks

    Quote Originally Posted by Norm View Post
    What have you tried? The Apache packages will help with reading and writing the csv files.
    If the csv files don't have quoted fields with embedded commas or newline characters, the files could be read and written as text without using the Apache packages. The String class's split method would separate the fields.
    The .csv file looks like this:
    1318,"RAS","1345087_1",25,2/16/2018 8:40:29 AM
    1318,"RAS","1345091_1",96,2/16/2018 8:40:36 AM
    1318,"RAS","1265200_1",25,2/16/2018 8:40:41 AM
    1318,"RAS","1265202_1",1,2/16/2018 8:40:46 AM
    1318,"RAS","1265165_1",10,2/16/2018 8:40:50 AM
    1318,"RAS","1265170_1",2,2/16/2018 8:41:49 AM
    1318,"RAS","444019_1",12,2/16/2018 8:41:54 AM

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Excel moving data between excel workbooks

    Have you tried the split method to separate the fields on a row?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 0
    Last Post: October 4th, 2017, 12:24 PM
  2. consolidate all the excel sheets in to one excel sheet
    By nakka07438 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 2nd, 2014, 11:35 PM
  3. Excel data to an array
    By ahmedoa in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 12th, 2013, 08:29 AM
  4. How to Remove Hype link from Excel while exporting to excel.
    By Rakesh Bhat in forum Java Theory & Questions
    Replies: 0
    Last Post: October 9th, 2013, 09:11 AM
  5. Replies: 3
    Last Post: September 1st, 2011, 10:49 AM

Tags for this Thread