Reference Multiple Excel Workbooks at the same time











up vote
3
down vote

favorite












I am trying to compile data from multiple workbooks into a single one. So far I had the idea of referencing cells from other workbooks, something like using



='C:UsersmeDocuments[sample.xlsx]Sheet1'!A1


However typing in each individual workbook this way would be very tedious. Is there away to do something like



='C:UsersmeDocuments[B2]Sheet1'!A1


Where B2 would have the value of "sample.xlsx".










share|improve this question
























  • Try INDIRECT function.
    – Lee
    Jul 3 at 6:52















up vote
3
down vote

favorite












I am trying to compile data from multiple workbooks into a single one. So far I had the idea of referencing cells from other workbooks, something like using



='C:UsersmeDocuments[sample.xlsx]Sheet1'!A1


However typing in each individual workbook this way would be very tedious. Is there away to do something like



='C:UsersmeDocuments[B2]Sheet1'!A1


Where B2 would have the value of "sample.xlsx".










share|improve this question
























  • Try INDIRECT function.
    – Lee
    Jul 3 at 6:52













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I am trying to compile data from multiple workbooks into a single one. So far I had the idea of referencing cells from other workbooks, something like using



='C:UsersmeDocuments[sample.xlsx]Sheet1'!A1


However typing in each individual workbook this way would be very tedious. Is there away to do something like



='C:UsersmeDocuments[B2]Sheet1'!A1


Where B2 would have the value of "sample.xlsx".










share|improve this question















I am trying to compile data from multiple workbooks into a single one. So far I had the idea of referencing cells from other workbooks, something like using



='C:UsersmeDocuments[sample.xlsx]Sheet1'!A1


However typing in each individual workbook this way would be very tedious. Is there away to do something like



='C:UsersmeDocuments[B2]Sheet1'!A1


Where B2 would have the value of "sample.xlsx".







microsoft-excel-2013






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 30 at 16:49









DavidPostill

102k25216252




102k25216252










asked Jun 29 at 21:01









austinw

161




161












  • Try INDIRECT function.
    – Lee
    Jul 3 at 6:52


















  • Try INDIRECT function.
    – Lee
    Jul 3 at 6:52
















Try INDIRECT function.
– Lee
Jul 3 at 6:52




Try INDIRECT function.
– Lee
Jul 3 at 6:52










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You could try the following. "REF" is the cell reference containing the target filename.
This file needs to be open for this to work, or it will give you a #REF error.



INDIRECT( "'C:UsersmeDocuments[" & REF & "]Sheet1'!A1" )





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1335386%2freference-multiple-excel-workbooks-at-the-same-time%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You could try the following. "REF" is the cell reference containing the target filename.
    This file needs to be open for this to work, or it will give you a #REF error.



    INDIRECT( "'C:UsersmeDocuments[" & REF & "]Sheet1'!A1" )





    share|improve this answer



























      up vote
      0
      down vote













      You could try the following. "REF" is the cell reference containing the target filename.
      This file needs to be open for this to work, or it will give you a #REF error.



      INDIRECT( "'C:UsersmeDocuments[" & REF & "]Sheet1'!A1" )





      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        You could try the following. "REF" is the cell reference containing the target filename.
        This file needs to be open for this to work, or it will give you a #REF error.



        INDIRECT( "'C:UsersmeDocuments[" & REF & "]Sheet1'!A1" )





        share|improve this answer














        You could try the following. "REF" is the cell reference containing the target filename.
        This file needs to be open for this to work, or it will give you a #REF error.



        INDIRECT( "'C:UsersmeDocuments[" & REF & "]Sheet1'!A1" )






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 16 at 14:30









        Twisty Impersonator

        17.1k126293




        17.1k126293










        answered Nov 16 at 14:02









        JPKowal

        217




        217






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1335386%2freference-multiple-excel-workbooks-at-the-same-time%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Сан-Квентин

            8-я гвардейская общевойсковая армия

            Алькесар