+ Reply to Thread
Results 1 to 14 of 14

Transfer and combine data from 2 separate Sheet to 1 sheet

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Transfer and combine data from 2 separate Sheet to 1 sheet

    I have a workbook that I started building to help me manage my online store a little faster and I was hoping someone could help me. I am working on a MAC version of Excel.Tire assistant.xlsm

    What I have is sheets named "Raw Transfer" and "Common Attributes", I need to get data from these 2 sheets to a sheet named "CSV Transfer". I have explained where everything is and needs to go on the "Common Attributes" sheet. I would prefer this to be done through a button on the "Common Attributes" sheet using VBA.

    I also have a few sloppy formulas that I came up with throughout the workbook and it would be awesome if someone could clean them up and maybe put them in VBA.

    Any help is much appreciated and if you don't feel like setting up everything for me, I can also do it if I have some examples...

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    Hi,

    It is not clear to me how you plan to merge the "Raw Transfer" and "Common Attributes" sheets onto the CSV TRANSFER sheet. I can relate the the Raw Data sheet, but the common attributes sheet is not clear to me what you need to collect and merge?
    Regards,
    Rudi

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    Sorry I guess I could have explained this a little better.

    On the Common attributes page you should see things highlighted in blue, red and brown. The Blue represents the cell on the CSV Transfer sheet where the data needs to go. The Red represents which product type to transfer this data i.e.

    -if it says Master then it belongs to the master Product only, however the master product is not on the Raw transfer page so its data is all on the common attributes page. The Master product should be added to the top of the CSV transfer page and it will not have a price, qty, tire specs, etc. The way my website is (Which Im not to happy with) is that the master product is like a place holder and any part that is a variation of it is added below it so when you pull up this specific tire model, all variations show up under it.

    -if it says Independent that means the data comes from each product individually and this data is located on the Raw Transfer sheet and its location is highlighted in brown.

    -if it says Subs then it is applied to sub-versions of the master

    -if it says all then its attribute needs to be copied to all the products - master and sub-versions


    I hope I have explained this good enough, and I really appreciate your Help!

    I really hate the website builder from my website host. As soon as my contract is finished I'm going to hire a local company to build a custom website exactly how I want it.

  4. #4
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    The picture is becoming clearer , and I can see that you have laboriously labeled all the cells on common attributes that must be copied to the CSV sheet. This is obvious and I can understand these to be added as a record below each other, however, I cannot start to assist with some solution as I still do not get the context of Master, All, Independent and Sub. I cannot put that together at this point.

    I think what would help is if you can fill in the CSV file with data to illustrate what goes where and how it must be structured (esp in context with Master, Independent, Sub and All???)

    Sorry to drag this out, but all solutions begin with small steps toward the greater functional design

  5. #5
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Post Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    I understand,

    Basically what needs to happen is first the Master product needs to be "created" in the CSV Transfer sheet in row 2 because it does not exist (This will always be the same procedure).

    The data for the master product comes from the Common attributes sheet cells s3:s13 (which are marked as the master product), s44:s80,a3,a19,a35,a51,a67,i3,i19,i35,i51,i67 because these attributes are used in all products (Master and Subs).




    Once the Master product has been created the Sub-Versions need to be added to the CSV Transfer sheet. The data for the Sub-Versions comes from the Raw Transfer sheet and the Common Attributes sheet cells s37:s42,s44:s80,a3,a19,a35,a51,a67,i3,i19,i35,i51,i67. If data is labeled Independent then there are cells labeled with the the datas location which are highlighted in brown.


    The cells that are highlighted in blue represent to location on the CSV Transfer sheet where the data needs to go.


    I've tried as good as I can to describe everything on the common attributes sheet as possible so you don't have to flip through 3 different sheet to write the code, in theory you have all the information you need to write the code by looking at just the common attributes sheet. Maybe I'm wrong though as I'm not an excel pro...


    Please don't hesitate to ask if you have more questions. Just so you know though I will be on the road tomorrow driving to Slovakia for work so if I don't respond in a timely manner thats why...

  6. #6
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    CSV example.xlsx

    Here is an example of how this should look when finished.

  7. #7
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    Quote Originally Posted by muddbog View Post
    Just so you know though I will be on the road tomorrow driving to Slovakia for work so if I don't respond in a timely manner thats why...
    Travel safe, and may the trip be prosperous...

  8. #8
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    Hi,

    Here is the macro that *hopefully* is compiling the data as you need.
    Test it out by clicking the button called "Create CSV" on the "Common Attributes" sheet.

    Holding thumbs
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Post Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    Thank You but There were a few problems, I hope its not because im on a MAC,

    the cells "S37 to S42" from the common attributes sheet need to be added to the CSV Transfer page but only for the Sub Versions, Right now they are copied to the Master Product only, You you could use column "CC" to distinguish between the Master and Sub-versions since the Master does not get this value

    The cells "S44 to S80,a3,a19,a35,a51,a67,i3,i19,i35,i51,i67" from the common attributes sheet need to be added to the CSV Transfer page for all the products, not just the master.

    Thank you for the help, and yes I made it to Slovakia... I'm beat!

  10. #10
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    It took me a while to really grasp what turns out to be a fairly straight forward process...
    Anyways... I think I have it now.

    Please test and verify.
    TX
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    Awesome Rudi! It works perfectly!

    Also Thank you for the comments on the VBA File, That makes it a little easier for a newbie like me to edit it later if needed!

    Once again Thanks!

  12. #12
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    Awesome Rudi! It works perfectly!

    Also Thank you for the comments on the VBA File, That makes it a little easier for a newbie like me to edit it later if needed!

    Once again Thanks!

  13. #13
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet

    Excellent.
    Glad it is working

  14. #14
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Transfer and combine data from 2 separate Sheet to 1 sheet


+ 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. How to transfer data from a daily input sheet to a separate monthly total sheet
    By Jcooper71 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2014, 02:37 PM
  2. Transfer inputed Data from Sheet x: row x to Sheet y : row y or Sheet z: row z
    By Joecruz749 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2013, 03:20 PM
  3. Transfer single column input data to fixed table in a separate Sheet
    By Prokis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2012, 05:37 AM
  4. [SOLVED] Transfer a specific cell from multiple sheets to a separate sheet
    By johnnylzep in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-16-2012, 08:12 AM
  5. How to Copy Two Separate table (with Different Fields) and transfer to dedicated sheet?
    By ivandgreat in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-23-2012, 06:42 AM

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