+ Reply to Thread
Results 1 to 6 of 6

Pull data, compile on new worksheet

  1. #1
    Registered User
    Join Date
    09-01-2017
    Location
    United States
    MS-Off Ver
    Office 2013
    Posts
    8

    Pull data, compile on new worksheet

    Hello,

    Looking for a little help. Looking to see if this is even a possibility. If it is possible, perhaps pointing me in the right direction, or thread. I have hopelessly tried getting this to work with no luck.

    What I'm trying to accomplish....if possible:

    I have a workbook with numerous worksheets. I would guess around 100.On every single worksheet in cell G2 there is a bunch of text. I need to pull an IP address from all that text. In Cell C2 there is a Hostname.

    Worst case: Macro that I press once, and it adds the formula " =TRIM(MID(SUBSTITUTE(G2," ",REPT(" ",99)),MAX(1,FIND("172.",SUBSTITUTE(G2," ",REPT(" ",99)))-50),99)) " to each worksheet in cell G7. I would still need to click on a bunch of different worksheet and collect the data, but at least it has pulled what I'm looking for from the 2-3 paragraphs of useless information in cell G2.

    Best case: Macro I press once, it adds the same formula to each worksheet to cell G7 to pull the information from G2. After which it creates a new worksheet and essentially compiles the data for me. and reference it with what was in cell C2.

    So after I'm done I should have a new worksheet that looks like this:

    Col A Col B
    Hostname1 172.1.2.3
    Hostname2 172.3.2.1
    Hostname3 172.9.8.7
    Hostname4 172.7.8.9
    Hostname5 172.4.5.6

    Attached sample.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Pull data, compile on new worksheet

    No need for a macro to do that copying.

    Copy the formula
    click on the 1st sheet you want it on
    scroll to the last sheet you want it on
    hold SHIFT and click on the last sheet name

    You have now GROUPED all the sheets together. Whatever you do on 1, gets "punched" through to all the sheets.
    So click on the cell where you want the formula to be, and just paste it there. If you did the grouping right, it should appear on all sheets in that same cell.

    A work of caution - make sure you UNGROUP the sheets when you are done, either by clicking on a sheet outside the group, or rig-click on a sheet name and select UNGROUP.
    If you dont do this, ANYTHING you do on ANY sheet in the group will be dome on all sheets. I have created hours of extra work for myself when I forget this step
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Pull data, compile on new worksheet

    .
    This is one way :

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

  4. #4
    Registered User
    Join Date
    09-01-2017
    Location
    United States
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Pull data, compile on new worksheet

    Thank you both for the help! I think this will do!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Pull data, compile on new worksheet

    Happy to help and thanks for the feeback

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Pull data, compile on new worksheet

    .
    You are welcome.

+ 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. [SOLVED] Search through sheets, pull out data that fits a criteria, and compile on seperate sheet
    By JTMNC in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-28-2016, 11:03 AM
  2. Replies: 1
    Last Post: 02-03-2016, 06:08 PM
  3. Replies: 29
    Last Post: 01-29-2016, 03:16 PM
  4. [SOLVED] VBA code needed that will compile data onto another worksheet
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2014, 08:27 PM
  5. Compile data from daily worksheet files into auto gen. weekly tracking worksheet
    By stephenallen019 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2012, 01:32 AM
  6. compile data from multiple worksheets into one worksheet
    By wtuttle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2009, 10:25 AM
  7. Replies: 0
    Last Post: 01-15-2008, 12:19 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