Increment ROW, not COLUMN when dragging formula horizontally












0















I'd like to drag the formula



=if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")


right to adjacent columns about 1,000 times. I only want statusSheet!$A1 to increase, and it needs to increase in rows instead of columns.



For instance, if the formula is in A1, and I drag it to B1, it should be in cell B2. [?]



=if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")









share|improve this question





























    0















    I'd like to drag the formula



    =if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")


    right to adjacent columns about 1,000 times. I only want statusSheet!$A1 to increase, and it needs to increase in rows instead of columns.



    For instance, if the formula is in A1, and I drag it to B1, it should be in cell B2. [?]



    =if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")









    share|improve this question



























      0












      0








      0


      1






      I'd like to drag the formula



      =if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")


      right to adjacent columns about 1,000 times. I only want statusSheet!$A1 to increase, and it needs to increase in rows instead of columns.



      For instance, if the formula is in A1, and I drag it to B1, it should be in cell B2. [?]



      =if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")









      share|improve this question
















      I'd like to drag the formula



      =if(and(AHTpivot!$A1=statusSheet!$A1, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")


      right to adjacent columns about 1,000 times. I only want statusSheet!$A1 to increase, and it needs to increase in rows instead of columns.



      For instance, if the formula is in A1, and I drag it to B1, it should be in cell B2. [?]



      =if(and(AHTpivot!$A1=statusSheet!$A2, AHTpivot!$B1="wrap-up"),AHTpivot!$C1, "")






      google-sheets google-sheets-formula






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 31 '18 at 17:32









      Federico Grandi

      3,08821229




      3,08821229










      asked Dec 30 '18 at 20:05









      driggersdriggers

      6




      6
























          2 Answers
          2






          active

          oldest

          votes


















          1














          Maybe:



          =if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")





          share|improve this answer
























          • perfect! thank you!

            – driggers
            Dec 30 '18 at 20:18






          • 1





            @driggers if this answer helps you I think you should vote it up instead of "thank you"

            – Dima Kozhevin
            Dec 31 '18 at 0:35



















          0














          You could also use an array formula if you don't want to drag the formula.



          =ARRAYFORMULA(IF(

          (AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
          * (AHTpivot!$B1="wrap-up")

          ,AHTpivot!$C1, "")


          The * acts as an and.



          Change AAA1 to the column reference you desire. Or, change to COLUMN(A1:1) if you want to go to the end of the sheet.



          Credit to pnuts for the INDIRECT idea. :)






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            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',
            autoActivateHeartbeat: false,
            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%2fstackoverflow.com%2fquestions%2f53981025%2fincrement-row-not-column-when-dragging-formula-horizontally%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Maybe:



            =if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")





            share|improve this answer
























            • perfect! thank you!

              – driggers
              Dec 30 '18 at 20:18






            • 1





              @driggers if this answer helps you I think you should vote it up instead of "thank you"

              – Dima Kozhevin
              Dec 31 '18 at 0:35
















            1














            Maybe:



            =if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")





            share|improve this answer
























            • perfect! thank you!

              – driggers
              Dec 30 '18 at 20:18






            • 1





              @driggers if this answer helps you I think you should vote it up instead of "thank you"

              – Dima Kozhevin
              Dec 31 '18 at 0:35














            1












            1








            1







            Maybe:



            =if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")





            share|improve this answer













            Maybe:



            =if(and(AHTPivot!$A1=indirect("StatusSheet!$A"&Column()),AHTPivot!$B1="wrap-up"),AHTPivot!$C1, "")






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 30 '18 at 20:11









            pnutspnuts

            48.7k76297




            48.7k76297













            • perfect! thank you!

              – driggers
              Dec 30 '18 at 20:18






            • 1





              @driggers if this answer helps you I think you should vote it up instead of "thank you"

              – Dima Kozhevin
              Dec 31 '18 at 0:35



















            • perfect! thank you!

              – driggers
              Dec 30 '18 at 20:18






            • 1





              @driggers if this answer helps you I think you should vote it up instead of "thank you"

              – Dima Kozhevin
              Dec 31 '18 at 0:35

















            perfect! thank you!

            – driggers
            Dec 30 '18 at 20:18





            perfect! thank you!

            – driggers
            Dec 30 '18 at 20:18




            1




            1





            @driggers if this answer helps you I think you should vote it up instead of "thank you"

            – Dima Kozhevin
            Dec 31 '18 at 0:35





            @driggers if this answer helps you I think you should vote it up instead of "thank you"

            – Dima Kozhevin
            Dec 31 '18 at 0:35













            0














            You could also use an array formula if you don't want to drag the formula.



            =ARRAYFORMULA(IF(

            (AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
            * (AHTpivot!$B1="wrap-up")

            ,AHTpivot!$C1, "")


            The * acts as an and.



            Change AAA1 to the column reference you desire. Or, change to COLUMN(A1:1) if you want to go to the end of the sheet.



            Credit to pnuts for the INDIRECT idea. :)






            share|improve this answer




























              0














              You could also use an array formula if you don't want to drag the formula.



              =ARRAYFORMULA(IF(

              (AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
              * (AHTpivot!$B1="wrap-up")

              ,AHTpivot!$C1, "")


              The * acts as an and.



              Change AAA1 to the column reference you desire. Or, change to COLUMN(A1:1) if you want to go to the end of the sheet.



              Credit to pnuts for the INDIRECT idea. :)






              share|improve this answer


























                0












                0








                0







                You could also use an array formula if you don't want to drag the formula.



                =ARRAYFORMULA(IF(

                (AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
                * (AHTpivot!$B1="wrap-up")

                ,AHTpivot!$C1, "")


                The * acts as an and.



                Change AAA1 to the column reference you desire. Or, change to COLUMN(A1:1) if you want to go to the end of the sheet.



                Credit to pnuts for the INDIRECT idea. :)






                share|improve this answer













                You could also use an array formula if you don't want to drag the formula.



                =ARRAYFORMULA(IF(

                (AHTpivot!$A1=INDIRECT("statusSheet!$A"&COLUMN(A1:AAA1))
                * (AHTpivot!$B1="wrap-up")

                ,AHTpivot!$C1, "")


                The * acts as an and.



                Change AAA1 to the column reference you desire. Or, change to COLUMN(A1:1) if you want to go to the end of the sheet.



                Credit to pnuts for the INDIRECT idea. :)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 31 '18 at 14:45









                s1c0j1s1c0j1

                9501616




                9501616






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53981025%2fincrement-row-not-column-when-dragging-formula-horizontally%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

                    Monofisismo

                    Angular Downloading a file using contenturl with Basic Authentication

                    Olmecas