Check if row Value is increasing / decreasing










0















I would like excel to check if year to year sales is increasing/decreasing.
If it increase year to year then it could indicate "true" or something.
If for example one of the year is decrease i.e. lower than previous year then its a "false"



For example,



Row 1, has the value with "1", "3", "7", "8" in the column. excel will indicate true.



Row 2, has the value with "1", "3", "2", "5" in the column. excel will indicate false as one of the year is lower than the previous year.



Not sure if there is any formula that can do this.



Your help is much appreciated.
Thanks.










share|improve this question


























    0















    I would like excel to check if year to year sales is increasing/decreasing.
    If it increase year to year then it could indicate "true" or something.
    If for example one of the year is decrease i.e. lower than previous year then its a "false"



    For example,



    Row 1, has the value with "1", "3", "7", "8" in the column. excel will indicate true.



    Row 2, has the value with "1", "3", "2", "5" in the column. excel will indicate false as one of the year is lower than the previous year.



    Not sure if there is any formula that can do this.



    Your help is much appreciated.
    Thanks.










    share|improve this question
























      0












      0








      0








      I would like excel to check if year to year sales is increasing/decreasing.
      If it increase year to year then it could indicate "true" or something.
      If for example one of the year is decrease i.e. lower than previous year then its a "false"



      For example,



      Row 1, has the value with "1", "3", "7", "8" in the column. excel will indicate true.



      Row 2, has the value with "1", "3", "2", "5" in the column. excel will indicate false as one of the year is lower than the previous year.



      Not sure if there is any formula that can do this.



      Your help is much appreciated.
      Thanks.










      share|improve this question














      I would like excel to check if year to year sales is increasing/decreasing.
      If it increase year to year then it could indicate "true" or something.
      If for example one of the year is decrease i.e. lower than previous year then its a "false"



      For example,



      Row 1, has the value with "1", "3", "7", "8" in the column. excel will indicate true.



      Row 2, has the value with "1", "3", "2", "5" in the column. excel will indicate false as one of the year is lower than the previous year.



      Not sure if there is any formula that can do this.



      Your help is much appreciated.
      Thanks.







      excel excel-formula






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 23:27









      DerekDerek

      81




      81






















          3 Answers
          3






          active

          oldest

          votes


















          1














          One possibility might be to use SUMPRODUCT and COUNT.



          If your data is in A1:D2, try the following in E1 and drag down as needed. Note that this can be expanded to handle as many columns as needed.



          =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)


          enter image description here



          If you want to consider no change year-over-year as still increasing, change the > to >=.






          share|improve this answer

























          • Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.

            – Derek
            Nov 15 '18 at 0:37











          • You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example, =SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1).

            – BigBen
            Nov 15 '18 at 0:43


















          0














          Maybe something like:



          =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0


          (courtesy TMS), provided no blank and no 0 after the start of the series.



          Stable year-on-year counts as 'increasing'.






          share|improve this answer























          • Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).

            – Derek
            Nov 15 '18 at 0:27


















          -3














          You can compare 1 column to another with an if statement. Something like this:



          =if(b1>a1, "true","false")






          share|improve this answer


















          • 1





            Drop the if statement

            – urdearboy
            Nov 14 '18 at 23:42











          • Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false

            – Derek
            Nov 14 '18 at 23:50










          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%2f53310298%2fcheck-if-row-value-is-increasing-decreasing%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          One possibility might be to use SUMPRODUCT and COUNT.



          If your data is in A1:D2, try the following in E1 and drag down as needed. Note that this can be expanded to handle as many columns as needed.



          =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)


          enter image description here



          If you want to consider no change year-over-year as still increasing, change the > to >=.






          share|improve this answer

























          • Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.

            – Derek
            Nov 15 '18 at 0:37











          • You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example, =SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1).

            – BigBen
            Nov 15 '18 at 0:43















          1














          One possibility might be to use SUMPRODUCT and COUNT.



          If your data is in A1:D2, try the following in E1 and drag down as needed. Note that this can be expanded to handle as many columns as needed.



          =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)


          enter image description here



          If you want to consider no change year-over-year as still increasing, change the > to >=.






          share|improve this answer

























          • Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.

            – Derek
            Nov 15 '18 at 0:37











          • You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example, =SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1).

            – BigBen
            Nov 15 '18 at 0:43













          1












          1








          1







          One possibility might be to use SUMPRODUCT and COUNT.



          If your data is in A1:D2, try the following in E1 and drag down as needed. Note that this can be expanded to handle as many columns as needed.



          =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)


          enter image description here



          If you want to consider no change year-over-year as still increasing, change the > to >=.






          share|improve this answer















          One possibility might be to use SUMPRODUCT and COUNT.



          If your data is in A1:D2, try the following in E1 and drag down as needed. Note that this can be expanded to handle as many columns as needed.



          =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)


          enter image description here



          If you want to consider no change year-over-year as still increasing, change the > to >=.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 14 '18 at 23:57

























          answered Nov 14 '18 at 23:50









          BigBenBigBen

          6,7152719




          6,7152719












          • Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.

            – Derek
            Nov 15 '18 at 0:37











          • You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example, =SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1).

            – BigBen
            Nov 15 '18 at 0:43

















          • Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.

            – Derek
            Nov 15 '18 at 0:37











          • You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example, =SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1).

            – BigBen
            Nov 15 '18 at 0:43
















          Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.

          – Derek
          Nov 15 '18 at 0:37





          Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.

          – Derek
          Nov 15 '18 at 0:37













          You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example, =SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1).

          – BigBen
          Nov 15 '18 at 0:43





          You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example, =SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1).

          – BigBen
          Nov 15 '18 at 0:43













          0














          Maybe something like:



          =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0


          (courtesy TMS), provided no blank and no 0 after the start of the series.



          Stable year-on-year counts as 'increasing'.






          share|improve this answer























          • Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).

            – Derek
            Nov 15 '18 at 0:27















          0














          Maybe something like:



          =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0


          (courtesy TMS), provided no blank and no 0 after the start of the series.



          Stable year-on-year counts as 'increasing'.






          share|improve this answer























          • Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).

            – Derek
            Nov 15 '18 at 0:27













          0












          0








          0







          Maybe something like:



          =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0


          (courtesy TMS), provided no blank and no 0 after the start of the series.



          Stable year-on-year counts as 'increasing'.






          share|improve this answer













          Maybe something like:



          =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0


          (courtesy TMS), provided no blank and no 0 after the start of the series.



          Stable year-on-year counts as 'increasing'.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 14 '18 at 23:51









          pnutspnuts

          49k764101




          49k764101












          • Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).

            – Derek
            Nov 15 '18 at 0:27

















          • Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).

            – Derek
            Nov 15 '18 at 0:27
















          Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).

          – Derek
          Nov 15 '18 at 0:27





          Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).

          – Derek
          Nov 15 '18 at 0:27











          -3














          You can compare 1 column to another with an if statement. Something like this:



          =if(b1>a1, "true","false")






          share|improve this answer


















          • 1





            Drop the if statement

            – urdearboy
            Nov 14 '18 at 23:42











          • Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false

            – Derek
            Nov 14 '18 at 23:50















          -3














          You can compare 1 column to another with an if statement. Something like this:



          =if(b1>a1, "true","false")






          share|improve this answer


















          • 1





            Drop the if statement

            – urdearboy
            Nov 14 '18 at 23:42











          • Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false

            – Derek
            Nov 14 '18 at 23:50













          -3












          -3








          -3







          You can compare 1 column to another with an if statement. Something like this:



          =if(b1>a1, "true","false")






          share|improve this answer













          You can compare 1 column to another with an if statement. Something like this:



          =if(b1>a1, "true","false")







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 14 '18 at 23:40









          merski007merski007

          11




          11







          • 1





            Drop the if statement

            – urdearboy
            Nov 14 '18 at 23:42











          • Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false

            – Derek
            Nov 14 '18 at 23:50












          • 1





            Drop the if statement

            – urdearboy
            Nov 14 '18 at 23:42











          • Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false

            – Derek
            Nov 14 '18 at 23:50







          1




          1





          Drop the if statement

          – urdearboy
          Nov 14 '18 at 23:42





          Drop the if statement

          – urdearboy
          Nov 14 '18 at 23:42













          Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false

          – Derek
          Nov 14 '18 at 23:50





          Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false

          – Derek
          Nov 14 '18 at 23:50

















          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%2f53310298%2fcheck-if-row-value-is-increasing-decreasing%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

          Darth Vader #20

          How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

          Ondo