+ Reply to Thread
Results 1 to 11 of 11

Dynamic formula to get data from another file

  1. #1
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Dynamic formula to get data from another file

    Hello everybody,
    Could you help me in my question ,please?
    My question:
    I need to create one dynamic formula to get data of company and its sum of quantity from another file (Data file) and put the results on(Report file) on 2 columns (like in the file ) depending on 2 conditions :
    1-Date
    2-Material
    Note:I need one (not two) dynamic formula only to get the data( company& sum of quantity) .I use office 365.
    No helper columns.
    see the attachment
    Attached Files Attached Files
    Last edited by leprince2007; 11-19-2021 at 02:20 PM.

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Dynamic formula to get data from another file

    Proposed solution.

    To lock the range I transformed your table in 'Data (1)' into a named table. Formula is in [Report.xlsx]Report!$E$10.

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

  3. #3
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: Dynamic formula to get data from another file

    Thanks DJunqueira for your solution.But I need quantity to be summed.
    Sorry I forget to mention that.
    I edited my first thread.

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

    Re: Dynamic formula to get data from another file

    Try

    =FILTER(FILTER(Data.xlsx!$C$2:$G$10,{1,0,0,0,1}),(Data.xlsx!$A$2:$A$10=B5)*(Data.xlsx!$B$2:$B$10=C5))

  5. #5
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: Dynamic formula to get data from another file

    Thanks Bo_Ry for your solution.But I need quantity to be summed.
    Sorry I forget to mention that.
    I edited my first thread.

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Dynamic formula to get data from another file

    For what you want I propose two dynamic array formulas, because find text and also add in one function kind of complex.

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


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

  7. #7
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: Dynamic formula to get data from another file

    Thanks DJunqueira for your solution.But I need one formula only. I tried to implement it but failed.
    Please help me

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

    Re: Dynamic formula to get data from another file

    Last try

    =LET(dl,Data.xlsx!$A$2:$A$10,d,B5,ml,Data.xlsx!$B$2:$B$10,m,C5,cl,Data.xlsx!$C$2:$C$10,qty,Data.xlsx!$G$2:$G$10,c,UNIQUE(FILTER(cl,(dl=d)*(ml=m))),CHOOSE({1,2},c,SUMIFS(qty,dl,d,ml,m,cl,c)))

  9. #9
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: Dynamic formula to get data from another file

    Thanks Bo_Ry for your solution but this formula gives me "Value" error when I open report file alone
    I think this happens because "sumifs" doesnot work with closed files

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

    Re: Dynamic formula to get data from another file

    try

    =LET(dl,Data.xlsx!$A$2:$A$10,d,B5,ml,Data.xlsx!$B$2:$B$10,m,C5,cl,Data.xlsx!$C$2:$C$10,qty,Data.xlsx!$G$2:$G$10,
    c,UNIQUE(FILTER(cl,(dl=d)*(ml=m),)),CHOOSE({1,2},c,MMULT((TRANSPOSE(dl)=d)*(TRANSPOSE(ml)=m)*(c=TRANSPOSE(cl)),qty)))

  11. #11
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: Dynamic formula to get data from another file

    Thank you very much.
    it worked like charm

+ 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. Dynamic file name change within a Formula based on a Cell contents name.
    By super5200 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 03-20-2021, 01:32 PM
  2. [SOLVED] Use data from a cell to make a dynamic file path
    By JonesIndiana in forum Excel General
    Replies: 5
    Last Post: 11-26-2019, 05:02 PM
  3. Need your help to dynamic file bname part of formula
    By erkamu in forum Excel General
    Replies: 13
    Last Post: 02-20-2019, 02:16 PM
  4. Replies: 1
    Last Post: 08-12-2014, 05:54 PM
  5. Dynamic Range Graph with data in separate file?
    By gapollo in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-29-2013, 09:44 AM
  6. Replies: 5
    Last Post: 05-26-2011, 01:10 PM
  7. Replies: 1
    Last Post: 09-22-2010, 11:00 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