+ Reply to Thread
Results 1 to 8 of 8

Data to extract from multiple tab

  1. #1
    Registered User
    Join Date
    05-29-2018
    Location
    UAE
    MS-Off Ver
    2019
    Posts
    75

    Data to extract from multiple tab

    Hi ,

    I have a summary tab ,I need only bounce cheque details from following tabs to main tab.

    Any formula can help me to make it easier.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,003

    Re: Data to extract from multiple tab

    Attached is a file that I created using Power Query to extract Returned Checks.

    I imported your file (both tabs) to a new workbook. Appended the two sheets to each other and then did some data manipulation. It is all available to you in the files.

    After appending the files, here is the Mcode

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: Data to extract from multiple tab

    Please try at
    A2
    =IF(B2="","",INDEX(INDIRECT("'"&B2&"'!A:A"),AGGREGATE(15,6,ROW('0050'!$B$4:$B$99)/ISNUMBER(FIND("Return",INDIRECT("'"&B2&"'!B4:B99"))),COUNTIF(B$2:B2,B2))))

    B2
    =IF(ROWS(B$2:B2)<=COUNT(INDEX(FIND("Return",'0050'!$B$4:$B$99),)),"0050",IF(ROWS(B$2:B2)-COUNT(INDEX(FIND("Return",'0050'!$B$4:$B$99),))<=COUNT(INDEX(FIND("Return",'0051'!$B$4:$B$99),)),"0051",""))

    C2
    =IF(B2="","",INDIRECT("'"&B2&"'!C2"))

    D2
    =IF(B2="","",LEFT(TRIM(RIGHT(SUBSTITUTE(INDEX(INDIRECT("'"&B2&"'!B:B"),AGGREGATE(15,6,ROW('0050'!$B$4:$B$99)/ISNUMBER(FIND("Return",INDIRECT("'"&B2&"'!B4:B99"))),COUNTIF(B$2:B2,B2))),":",REPT(" ",99)),99)),6))

    E2
    =IF(B2="","",INDEX(INDIRECT("'"&B2&"'!C:C"),AGGREGATE(15,6,ROW('0050'!$B$4:$B$99)/ISNUMBER(FIND("Return",INDIRECT("'"&B2&"'!B4:B99"))),COUNTIF(B$2:B2,B2))))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-29-2018
    Location
    UAE
    MS-Off Ver
    2019
    Posts
    75

    Re: Data to extract from multiple tab

    Hi Bo ,

    Thanks it will help . One question if want more tabs to add , so which formula I need to add .Do I have to change in all formula or only in B2 .

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

    Re: Data to extract from multiple tab

    Yes, Please Key sheet name at G1:Gxx

    Add name range Sheetlist =$G$1:INDEX($G:$G,COUNTA($G:$G))

    B2
    =IFERROR(INDEX(Sheetlist,MATCH(0,INDEX(N(COUNTIF(B$1:B1,Sheetlist)=COUNTIFS(INDIRECT("'"&Sheetlist&"'!B4:B99"),"*Return*")),),)),"")
    Attached Files Attached Files

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,003

    Re: Data to extract from multiple tab

    Shan54321

    No comment about Power Query Solution? Did you even try it or did you choose to ignore it? Common courtesy says a response is in order.

  7. #7
    Registered User
    Join Date
    05-29-2018
    Location
    UAE
    MS-Off Ver
    2019
    Posts
    75

    Re: Data to extract from multiple tab

    Dear Alan ,

    I Haven't tried .I want a step by step to follow the power query.

    Thanks alan.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,003

    Re: Data to extract from multiple tab

    Click on the Power Query Links in my signature block.

+ 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] Data to extract from multiple tab
    By Shan54321 in forum Excel General
    Replies: 1
    Last Post: 02-20-2019, 02:10 PM
  2. Replies: 12
    Last Post: 10-02-2018, 02:27 PM
  3. [SOLVED] Extract multiple data from multiple column with one criteria
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-15-2017, 03:13 PM
  4. Code to Extract data from multiple workbooks and Multiple sheet
    By Masa1989 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2015, 07:05 AM
  5. [SOLVED] How to Extract Data from Multiple Files in Same Folder and Copy Data to One File
    By champ052005 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2013, 01:25 PM
  6. [SOLVED] Extract multiple data from one cell into multiple columns
    By the corpo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2013, 09:56 AM
  7. Replies: 3
    Last Post: 01-05-2013, 02:20 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