+ Reply to Thread
Results 1 to 13 of 13

Scraping data from the same cells on multiple tabs in a workbook onto a single tab

  1. #1
    Registered User
    Join Date
    10-09-2014
    Location
    Fort Worth, TX
    MS-Off Ver
    2010
    Posts
    7

    Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    Hello,

    I'm working with a company that has done all of their proposals and invoicing in excel for years, and I'm trying to get all of their information online into a CRM. The good news is that the invoices are all consistent, and the data is predictably in the same cells on each tab.

    Is a macro the best way to scrape the data from workbooks with literally hundreds of tabs in order to aggregate this data? I have years 2010-2014 from which I need to extract this data.

    Invoice Template.xlsxMacro Layout.xlsx

    I've attached a sample of what the typical worksheet tab looks like, and then also attached the format I'd like to extract the information to.

    Is a macro the best way to do this? Or is there another function that would be effective. Some of those spreadsheet I'm guessing have 500 sheets in them. Thanks!!

  2. #2
    Forum Contributor
    Join Date
    09-26-2014
    Location
    Moscow, Russia
    MS-Off Ver
    MSE 10, MSE 13
    Posts
    179

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    Hello, Retro.

    VBA is the only way to gather data in this case. But question "How?" is open.

    If result data will have more than 300'000 rows - I strongly recommend to scrap information into Access file or, that could be even more better, to any SQL data base.

    In any case, part of code that will open your basic files one by one and circling through your sheets will be the same for any "WareHouse" you will choose.
    Best wishes and have a nice day!

  3. #3
    Registered User
    Join Date
    10-09-2014
    Location
    Fort Worth, TX
    MS-Off Ver
    2010
    Posts
    7

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    I estimate no more than 500 rows per workbook. I can them combine that data from several years into a single csv file for import. If I understand your question correctly, that would mean I could keep this function in excel, and not need access right?
    www.texas-generator.com
    www.keiserelectric.com

  4. #4
    Forum Contributor
    Join Date
    09-26-2014
    Location
    Moscow, Russia
    MS-Off Ver
    MSE 10, MSE 13
    Posts
    179

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    Yes, Excel will be enough in this case.

    One more important thing is where all of your files are located. It could be easier to write a code if it is a single folder with nothing more, than books we are parsing.

  5. #5
    Registered User
    Join Date
    10-09-2014
    Location
    Fort Worth, TX
    MS-Off Ver
    2010
    Posts
    7

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    I would have workbooks named 2010, 2011, 2012, 2013, 2014

    I can put them all in one folder named as suggested if that makes it easier.

  6. #6
    Forum Contributor
    Join Date
    09-26-2014
    Location
    Moscow, Russia
    MS-Off Ver
    MSE 10, MSE 13
    Posts
    179

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    May you upload 1 nonempty example worksheet FROM where info will be gathered? Just to be sure that code will work exactly as we want.

    And all of your workbooks consist from identical by structure sheets without any deviations, so we may apply the same code to every sheet and workbook without filtering anything. Am I right?

  7. #7
    Registered User
    Join Date
    10-09-2014
    Location
    Fort Worth, TX
    MS-Off Ver
    2010
    Posts
    7

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    I already put a non-empty template attached above. And then the other attachment is the desired output with so references. Does this address what you're asking, or are you meaning something else?

  8. #8
    Forum Contributor
    Join Date
    09-26-2014
    Location
    Moscow, Russia
    MS-Off Ver
    MSE 10, MSE 13
    Posts
    179

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    In "Invoyce_Template" I see no data but one picture. Are you gathering pictures?

  9. #9
    Registered User
    Join Date
    10-09-2014
    Location
    Fort Worth, TX
    MS-Off Ver
    2010
    Posts
    7

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    Yikes!! wrong file. THanks for the heads up on that. SampleProposal.xlsx

    I'll test this to make sure it uploaded correctly. Thanks for your help, it is very much appreciated.

  10. #10
    Forum Contributor
    Join Date
    09-26-2014
    Location
    Moscow, Russia
    MS-Off Ver
    MSE 10, MSE 13
    Posts
    179

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    Hello again, Retro.

    There is one more question. Explain please adress system:

    Please Login or Register  to view this content.
    What is City, what is State and what is ZIP here?

  11. #11
    Registered User
    Join Date
    10-09-2014
    Location
    Fort Worth, TX
    MS-Off Ver
    2010
    Posts
    7

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    I had one guys tell me he could parse that data into 3 columns, but I think I will just keep it in one. I can manually change the records or use a different excel function to parse the data later. If I could transfer all of the info from that cell into just the Address cell, that would be great. I can delete the city and zip code columns for ease. Thanks!!!

  12. #12
    Forum Contributor
    Join Date
    09-26-2014
    Location
    Moscow, Russia
    MS-Off Ver
    MSE 10, MSE 13
    Posts
    179

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    Hello, Retro!

    I am sorry for making you wait so long. But I've finally found 1 hour to compile something for you.

    Please check button in the attachment. Programm will ask you to select a folder where your files are stored. Be sure this folder doesn't contain anything more.

    Elapsed time will depend on power of your PC and may take from several seconds to a minute or two.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    10-09-2014
    Location
    Fort Worth, TX
    MS-Off Ver
    2010
    Posts
    7

    Re: Scraping data from the same cells on multiple tabs in a workbook onto a single tab

    You sir, are hero status!

    works perfectly, and easy to adapt to any cells that were in different places.

    Thanks!!!

+ 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. Pulling Custom Data from Single Source into Multiple Tabs
    By cscowmax in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-21-2014, 02:08 PM
  2. Update a single table with data from a worksheet with multiple tabs
    By Shaliza Riley in forum Access Tables & Databases
    Replies: 0
    Last Post: 06-26-2013, 01:20 PM
  3. [SOLVED] Extract data from a workbook with multiple tabs, into a workbook with corresponding tabs
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2013, 11:54 AM
  4. Replies: 0
    Last Post: 06-27-2012, 12:41 PM
  5. Concatenating multiple cells to a single cell between 2 tabs
    By Legacial in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-08-2011, 10:12 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