+ Reply to Thread
Results 1 to 12 of 12

Help with Pulling Data from Multiple sheets using Indirect Formual.

  1. #1
    Registered User
    Join Date
    01-21-2018
    Location
    Northampton, England
    MS-Off Ver
    2010
    Posts
    61

    Help with Pulling Data from Multiple sheets using Indirect Formual.

    Afternoon all,

    Im trying to use Indirect to pull data from multiple sheets into one, however i need it to skip the data if there is in the other column.

    So for example if Column B is the data to pull, if A4 has a value then it wont pull the data from there and will skip to A5 that has no value and pull the data from B5.

    This needs to be continue as the sheets have data from Row 4 to Row 300/350. but only up to 10 data values needing to be pulled.
    Last edited by Hyperion1571; 03-14-2019 at 08:48 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Indirect Formula Help.

    Not saying I'll solve this but

    Sounds fiddly, so...

    Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-21-2018
    Location
    Northampton, England
    MS-Off Ver
    2010
    Posts
    61

    Re: Indirect Formula Help.

    To help people with a solution iv attached a sample.

    The sheet needs to use indirect so that no matter how many pages are in the document it will pull all the data.

    Thanks for your help.
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Indirect Formula Help.

    Not sure about this.

    Please try at A2 drag across and down

    =INDEX(INDIRECT($C$1&"!D:G"),AGGREGATE(15,6,ROW(A$4:A$350)/(INDIRECT($C$1&"!b4:B350")=""),ROWS(A$2:A2)),4-MOD(COLUMN(),3)-(COLUMN()=2))&""
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-21-2018
    Location
    Northampton, England
    MS-Off Ver
    2010
    Posts
    61

    Re: Indirect Formula Help.

    I need to be able to copy the block 100+ times down the page to pull the data from multiple sheets into the one sheet is it possible to be able to do this?

    Thanks

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Indirect Formula Help.

    Please provide more sample

  7. #7
    Registered User
    Join Date
    01-21-2018
    Location
    Northampton, England
    MS-Off Ver
    2010
    Posts
    61

    Re: Indirect Formula Help.

    Please see example attached, thanks
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Indirect Formula Help.

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.
    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    01-21-2018
    Location
    Northampton, England
    MS-Off Ver
    2010
    Posts
    61

    Re: Help with Pulling Data from Multiple sheets using Indirect Formual.

    Is any one able to help with correcting the formula to be able to do as per the example please. thanks.

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help with Pulling Data from Multiple sheets using Indirect Formual.

    See if this works,

    D2, fill down in rows where you need the formulas.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    E1 (top row only)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    E2, fill down (this one will detect the headings in column D and adjust accordingly)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A2:C2, then fill down in formula rows
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    As INDIRECT is avolatile function, meaning that the formulas will recalculate for every slight change you make in excel, I've tried to set it up in a way to minimise the amount of calculations needed rather than going for the shortest formulas. Column E is used to define the exact number of rows in each sheet rather than processing empty rows in the aggregate array.
    Attached Files Attached Files

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help with Pulling Data from Multiple sheets using Indirect Formual.

    Please try at A2:C2

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    D2
    =TRIM(RIGHT(SUBSTITUTE(LOOKUP(2,1/(LEFT($C$1:$C1)="s"),$C$1:$C1),"_",REPT(" ",9)),9))


    copy A2:D16 to A18, A34, …
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    01-21-2018
    Location
    Northampton, England
    MS-Off Ver
    2010
    Posts
    61

    Re: Help with Pulling Data from Multiple sheets using Indirect Formual.

    The solution in the previous post works perfectly however need to be able to move the table within the sheet, such as down rows and across columns and still get the same data through and further would be able to copy and paste the tables down the page to cover more pages on requirement.

    Any help welcome, thanks again all.

+ 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] My formula sumif/indirect formula is working perfect..except everything is 1 row off!
    By Nyolls in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2015, 01:12 PM
  2. [SOLVED] INDIRECT Function with multiple sheets - SUMIF, INDIRECT & MATCH
    By DJDRU in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 08:42 AM
  3. adding Indirect formula to my current sum if array formula
    By Eastbay2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-13-2013, 09:41 AM
  4. Sum of indirect sheet names with multiple cells (SUM, INDIRECT,SHEETNAME in cell)
    By a1b2c3d4e5f6g7h8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2013, 08:42 AM
  5. Replies: 1
    Last Post: 02-10-2012, 02:53 AM
  6. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 12:05 PM
  7. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 AM

Tags for this Thread

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