+ Reply to Thread
Results 1 to 11 of 11

Transferring data

  1. #1
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Transferring data

    Hi,

    Thanks for looking at my post. Please check the attachment

    Basically i have 2 workbook in different shared location. I wanted to transfer some of the data from workbook 1 to workbook 2.
    1. First i wanted to filter column G from workbook 1 to "Filter 2" and transfer only filter 2 data to workbook 2.
    2. Then transferring like i wanted to transfer column C (source) to column B (destination) , column D to D, Column L to Column G, etc.
    3. I wanted to sum from column P to colum AA and transfer those sum to destination at column H
    4. Then copy from column AB to AH and paste in I to O in destination

    I am not that great in macro and any help will be appreciated. If it is too much work then its ok. Thanks again and sorry guys

    Thanks,
    Jim
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Transferring data

    The code is in the VBA module of the 'Transfer data_maras' workbook.
    Open it and run the code.The second workbook2.xlsx is opened with the code and the changes are saved when finished.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,
    Maras.

  3. #3
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Transferring data

    Hi Maras,

    Thanks a lot for your time and effort for replying. I have downloaded and its works perfectly fine but when i try to convert to my source file i am getting an error in the below line. I think i am doing something wrong. I have attached my source and destination file (Exact format how it look like) is it possible for you to point me a direction where i am going wrong?

    NOTE: I have update workbook2 manually how the result i am looking for. Unfortunately i am getting an error and i am sure i am doing something wrong.

    thanks again
    Have a nice day
    Jim
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Transferring data

    There were anomalies in the 'Workbook2.xlsx'. Many headers had a space at the end, and the main workbook was not.
    You need to post attachments on the forum with the same structure as the original.
    Check how it works now.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Transferring data

    Really thanks for your time and effort. It works perfectly fine and I just got stuck with final couple of bit. It will be much helpful if any one input any idea of how to do this bit please.
    1. As I have added column AH and AI. There are few circumstance where column B (ID) might have repetition of same ID number and in this case I wanted to check “Grandtotal” in AI column and which ever is higher with the same ID number I wanted to transfer to the other workbook and ignore the other one please.
    2. Secondly, when i transfer data to destination workbook by using the code you specified i have few more columns which is having other formula but for some reason when i use the column heading i am getting N/A. Do you know how to not to erase any formula in those cells plus stop transfering after column P please?

    Any idea please?

    Thanks again 
    Jim
    Attached Files Attached Files
    Last edited by jimpatel1993; 01-24-2021 at 02:53 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Transferring data

    Does this do what you want?
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Transferring data

    Different method.
    Run from Workbook2 and Source workbook should be closed.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Transferring data

    Thanks a lot for the input. Both the ideas works fine and thanks a lot for your input. One final thing is I have added "sheet2" in the source work book with some data's having same unique ID and name from sheet 1 and some are new (highlighted in yellow for same unique id from sheet 1). It is exactly same concept but for some reason i am not getting luck in getting the solution. what i am after is I wanted to move data from sheet 2 (Sourceworkbook) to destination and if the same unique ID repeats in both sheet 1 and sheet 2 then i wanted to add in the respective column and row in the destination sheet. If it is new unique ID then i am looking for adding new additional row with same above concept. Any idea guys?
    Thanks again
    Jim
    Attached Files Attached Files
    Last edited by jimpatel1993; 01-27-2021 at 06:18 PM.

  9. #9
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236
    Any idea please
    Last edited by jimpatel1993; 01-29-2021 at 06:26 AM.

  10. #10
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Transferring data

    Any idea guys? Much appreciated if you could help.
    Thanks
    Last edited by jimpatel1993; 02-03-2021 at 08:30 AM.

  11. #11
    Forum Contributor
    Join Date
    08-26-2016
    Location
    UK
    MS-Off Ver
    O365
    Posts
    260

    Re: Transferring data

    See your cross post at Eileen's Lounge.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Transferring Data
    By Laradavies in forum Excel General
    Replies: 1
    Last Post: 08-16-2018, 09:46 AM
  2. Replies: 4
    Last Post: 05-17-2016, 03:12 AM
  3. [SOLVED] Transferring data from a front sheet to correct tab dependant on the data
    By frootloop in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2016, 01:28 PM
  4. transferring of data
    By Deeks in forum Excel General
    Replies: 2
    Last Post: 06-06-2010, 06:12 PM
  5. transferring data with an add-in
    By sebastiansouth in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2009, 08:55 AM
  6. [SOLVED] Transferring Data
    By Susan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-25-2006, 05:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1