+ Reply to Thread
Results 1 to 15 of 15

Filter formula - get data from other excel file

  1. #1
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Filter formula - get data from other excel file

    Hello,
    Good Day!

    I am using this excel formula within the same sheet and working perfectly.

    =FILTER(Table1[#All],Table1[[#All],[NAMES]]='AUGUST - 2024'!C15)


    But I want to use this Filter formula to take data from other excel file ( not the same). Where should I put the path of the excel file so that I could take data using other file.

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,666

    Re: Filter formula - get data from other excel file

    If you are using FILTER, then your Excel version is NOT 2013. Before se start on this, please update your profile with 2021, 365 or 2024, as appropriate. Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Filter formula - get data from other excel file

    Profile Updated: I am using Office 365
    Thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,666

    Re: Filter formula - get data from other excel file

    OK. So, a few questions:

    1. Which bits of the formula need to reference a different workbook? Is it the data you want filtering or the match criterion?
    2. Will the workbook in question be open or closed?
    3. What is your environment? Will the workbook be on your machine, or on something like Sharepoint (a networked drive)?

  5. #5
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Filter formula - get data from other excel file

    1. In workbook B where the formula is written, i.e, Sam, Sha, Exs (reference) data of row will be filtered from A workbook and put into workbook B separately in 3 sheets (sheet1 sam, sheet2 sha, sheet3 exs)
    2. When the data is put on Workbook A, Workbook B will get data from Workbook A according to the Filter function
    3. The workbook is on the same machine

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,666

    Re: Filter formula - get data from other excel file

    1. Means nothing to me - I cannot see the workbook where the data needs to be collated. Please attach a sample.
    2. This is not an answer to the question. I asked whether the workbook with the source data would be OPEN or CLOSED? You may not be able to use the FILTER function. Also, structured table references can't be used with closed workbooks. So this matters - A LOT.
    3. Good.
    Last edited by AliGW; 09-03-2024 at 04:26 AM. Reason: Typos fixed.

  7. #7
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Filter formula - get data from other excel file

    Workbooks attached
    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 (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,666

    Re: Filter formula - get data from other excel file

    Please respond to Q2 in post #6. It's crucial to how this is done.

  9. #9
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Filter formula - get data from other excel file

    On a daily basis, data will be entered in Workbook A and in Workbook B through Filter formula auto data will be taken from Workbook A.
    The question is this. If Workbook B is not open then will it work or Both workbooks should be open.


    Thanks

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,666

    Re: Filter formula - get data from other excel file

    If Workbook B is not open then will it work or Both workbooks should be open.
    Not as it stands, no. I said this in post #6:

    structured table references can't be used with closed workbooks.
    =FILTER(Table1[#All],Table1[[#All],[NAMES]]='AUGUST - 2024'!C15)

    Red = structured table references.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,666

    Re: Filter formula - get data from other excel file

    This will work on an open workbook:

    =VSTACK('[Workbook A.xlsx]DATA'!$A$1:$E$1,FILTER('[Workbook A.xlsx]DATA'!$A$2:$E$2000,'[Workbook A.xlsx]DATA'!$A$2:$A$2000=TEXTAFTER(CELL("filename",A1),"]")))

    It seems to continue working when the source workbook is closed.

    You will need to test it properly for yourself.

    It will NOT work in a structured table.

  12. #12
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Filter formula - get data from other excel file

    Ok thanks
    let me check it.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,666

    Re: Filter formula - get data from other excel file

    Let me know, please.

  14. #14
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Filter formula - get data from other excel file

    Genious!
    Its work
    thank you soo much

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,666

    Re: Filter formula - get data from other excel file

    Glad to hear it. Thanks for the rep.

+ 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. Replies: 1
    Last Post: 12-03-2023, 06:51 PM
  2. Is there any formula can read the data from the file name and mark it onto an excel file ?
    By davidtips0214 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-13-2023, 11:34 PM
  3. Link an Excel file to an Excel DB and filter data
    By vb719 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2019, 10:56 AM
  4. Formula to filter data in excel
    By krrish17 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-11-2016, 02:28 PM
  5. Taking data from CSV to Excel (Filter & Sort), then export to new excel file
    By tmhall in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2014, 11:26 AM
  6. Replies: 4
    Last Post: 06-19-2013, 05:45 AM
  7. Macro or an excel formula to filter data
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2012, 11:36 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