+ Reply to Thread
Results 1 to 2 of 2

To get data from several cells on one sheet replicated across a the workbook into table

  1. #1
    Registered User
    Join Date
    11-01-2016
    Location
    manchester, uk
    MS-Off Ver
    2010
    Posts
    4

    To get data from several cells on one sheet replicated across a the workbook into table

    My problem

    I want to extract multiple cell (specific cells) data from multiple sheets to make a table for easy analysis. I am trying VB as this would be the easiest and each sheet has 100 or so specific cells. Below is what I want to do, below that is the code I have found but cant figure out how to alter it to get it to retrieve additional lines. Can anyone help... thanks

    What I am looking for is basically
    Macros go to sheet2 and get data from C1, C5, D10, E15, C22 etc and get put data into sheet 1 across column.
    Macros go to sheet3 and get data from C1, C5, D10, E15, C22 etc and get put data into sheet 1 across column, below previous data

    .....
    Does this make sense? And I will be adding additional sheets as the work goes on....


    Sub MakeSummaryTable()
    Dim ws As Worksheet

    Application.ScreenUpdating = False
    Sheets("Sheet1").Activate

    For Each ws In Worksheets
    If ws.Name <> "Sheet1" Then
    ws.Range("C10").Copy
    ActiveSheet.Paste Range("A65536").End(xlUp).Offset(1, 0)
    End If
    Next ws

    Application.ScreenUpdating = True

    End Sub

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Smile Re: To get data from several cells on one sheet replicated across a the workbook into tabl

    Welcome to the forum Muthomi,

    I don't think a macro is the best way to approach this.

    I suggest you begin with Sheet1, and in row 1, enter the cell address across the page for all the cell references you want to extract from your subsequent sheets.

    Thus, A1="C1", B1 = "C5", C1 = "D10", D1 = "E15", E1 = "C22" .... etc. (If you don't want to see this, you can hide it anywhere in your workbook.

    Now, in A2 enter this formula: =INDIRECT("Sheet" & ROW() &"!"&A$1)

    Copy it down and across, and you will have all the data from the other sheets populating your table.

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

    Attached Files Attached Files

+ 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. Mirror Cells for edits to be replicated both ways
    By hemal89 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2020, 08:44 AM
  2. Formulas not working on replicated sheet
    By chilli76 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2016, 04:52 AM
  3. [SOLVED] How to use vba to get data from table on another sheet in same workbook
    By ndtsteve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2012, 03:00 PM
  4. copy pivot table data to next available sheet in a certain workbook
    By bsigmon1103 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2012, 12:45 PM
  5. Vlookup to find missing or replicated data`
    By excelhlp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2008, 05:24 PM
  6. replicated data in multiple cells on multiple worksheets
    By nam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2007, 11:08 PM
  7. Data validation code not replicated in rows by macro;can this be d
    By Mitchell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2005, 02:06 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